Forked from ChrisMagnuson/DeleteAllCamundaProcessInstances.ps1
Created
May 19, 2020 13:23
-
-
Save ramonjoaquim/f56e5e26980f9ea326d2578dfa44d5fd to your computer and use it in GitHub Desktop.
Delete all process instances in Camunda BPMN with powershell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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