Deleting process instances
You can use the Process Admin Console, a REST API call, or a wsadmin command to
delete process instances that match specified criteria.
You can only perform this operation if your user ID is a member of the
administrator group.
Warning: When you delete a process instance, all local attachments of that instance are
also deleted.
If you want to specify particular
process instance states, the states running, finished,
and stopped correspond to the states active, completed,
and failed in wsadmin and Process Inspector.
Tip: Before you delete any processes instances, you can get a count of how many
instances match the criteria for deletion. Also, if a delete operation takes a long time, you can
get a count to check the number of instances that are left to delete.
Note: As of IBM® Business Automation
Workflow 23.0
and above, the Health Management menu option has a new path that links to the
REST API Swagger page.
Using the Process Admin Console and REST API call
- Login to the Process Admin Console at
https://<BAW_hostname:port>/ProcessAdmin. - Select the menu icon and select .
IBM Business Automation Workflow Operations REST Interface Swagger UI opens in a new browser tab.
- Load the IBM Business Automation
Workflow
Operations REST Interface Swagger UI:
https://host:port/bpm/explorer/?url=https://host:port/ops/docs?tags=Health%20Management#/Health%20Management - Expand the
Systemsection, then expand thePOST/system/loginsection. - Click .
If the login is not successful, HTTP error code is shown in the
Server responsesection. Fix the error and repeat the login.If the login is successful, the HTTP response code is201and thecsrf_tokenelement is found at theResponse bodysection.{ "csrf_token": "eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE....o0PoTvKdQxokI5XaZRMw", "expiration": 7200 } - Copy the
csrf_tokenand locate/expandDELETE /std/bpm/processesAPI call in theHealth Managementsection. - Click Try it out.
- Copy the
csrf_tokento theBPMCSRFTokenparameter. - Specify values for the parameters. Required parameters are marked with a *.Important: To delete process instances that are in states other than finished and terminated, you must specify the option
force=true. - Click Execute.
Using a wsadmin command
To delete process instances from the IBM Business Automation Workflow database, see BPMProcessInstancesPurge command.
This topic only applies to BAW, and is located in the BAW repository. Last updated on 2025-01-20 10:38