Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ramonjoaquim/f56e5e26980f9ea326d2578dfa44d5fd to your computer and use it in GitHub Desktop.
Save ramonjoaquim/f56e5e26980f9ea326d2578dfa44d5fd to your computer and use it in GitHub Desktop.
Delete all process instances in Camunda BPMN with powershell
$Uri = "http://localhost:8080/engine-rest/process-instance/"
$ProcessInstances = Invoke-WebRequest -Uri $Uri | select -ExpandProperty content | ConvertFrom-Json
foreach ($ProcessInstance in $ProcessInstances) {
Invoke-WebRequest -Method Delete -Uri $($Uri + $ProcessInstance.id)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment