Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ChrisMagnuson/fb3a829c040cc3892984 to your computer and use it in GitHub Desktop.
Save ChrisMagnuson/fb3a829c040cc3892984 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