Deleting snapshots
You can use the Process Admin Console or a REST API call to delete snapshots of
process applications or toolkits from Workflow Server or Workflow Center.
You can
only perform this operation if your user ID is a member of the administrator group.
Note: Only one snapshot delete operation can be performed at a time.
Before you begin
Make sure that the following prerequisites are met:
- For information about the prerequisites for deleting snapshots from Workflow Server see BPMDeleteSnapshot command.
- For information about the prerequisites for deleting snapshots from Workflow Center see BPMSnapshotCleanup command.
- BPMCSRFToken is required for this REST API. For more information, see Preventing cross site request forgery.
Using the Process Admin Console
- Click .
- Select the command Delete Snapshots.
- Specify values for the command's parameters.
- Click Submit.
- If there is an error, you will see the error message. Otherwise, you can check the progress of the deletion in the system log.
Using a REST API call
Call the operations REST API DELETE
https://host:port/ops/std/bpm/containers/acronym/versions.
Where acronym is the acronym of the process application or toolkit that contains
the snapshots to delete.
Remember: For IBM® BPM on
Cloud, the operations REST
APIs have the URL
https://hostname.bpm.ibmcloud.com/bpm/environment/ops/std/bpm/containers/acronym/versions,
where environment has the value dev for the development system,
test for the test system, or run for the production (runtime)
system.Important: Depending on whether host:port resolves
to a workflow server or a workflow center, different parameters are required, optional, or ignored.
For details about the operations REST APIs and to try invoking them from a browser, use the Swagger
interface. The Swagger interface is available at the URL
https://server:port/ops/explorer
where server is the host name of your workflow server and port
is the port number that is used by the workflow server. For example,
https://localhost:9443/ops/explorerThe following examples illustrate how to use the REST API to delete snapshots from Workflow Server and Workflow Center.
- Workflow Server examples
-
- Delete named snapshots
V01andV02of toolkitTK1:DELETE http://host:port/ops/std/bpm/containers/TK1/versions?versions=V01,V02 - Delete the last and default snapshot
VLASTof process applicationAPP1:DELETE http://host:port/ops/std/bpm/containers/APP1/versions?versions=VLAST&force=true
- Delete named snapshots
- Workflow Center examples
-
- Delete archived named snapshots
V01andV02of the default branch of toolkitTK1:DELETE http://host:port/ops/std/bpm/containers/TK1/versions?versions=V01,V02 - Delete all unnamed snapshots except the tip snapshot of branch
Testof toolkitTK1:DELETE http://host:port/ops/std/bpm/containers/TK1/versions?branch_name=Test&kept_number=0 - Delete all unnamed snapshots of branch
Testof process applicationAPP1created before snapshotV20:DELETE http://host:port/ops/std/bpm/containers/APP1/versions?branch_name=Test&created_before_snapshot=V20 - Delete all unnamed snapshots of branch
Testof process applicationAPP1created before a point in time:DELETE http://host:port/ops/std/bpm/containers/APP1/versions?branch_name=Test&created_before=2016-10-01T00:00:00-06:00Remember: If you need to specify a time zone that is ahead of UTC, you must encode the+symbol as%2B. For example, for the Central European Time zone+01:00, you must use%2B01:00in your URL. Alternatively, you can specify a UTC date, for examplecreated_before=2016-01-01T01:00:00Z.Remember: The operations REST APIs have the following URL,https://hostname.bpm.ibmcloud.com/bpm/environment/ops/std/bpm/containers/acronym/versions, where environment has the valuedevfor the development system,testfor the test system, orrunfor the production (runtime) system.
- Delete archived named snapshots
Important: All calls to the Operations REST API require that the HTTP header
BPMCSRFToken is set with every request. For information about how to obtain a
token, see Preventing cross site request forgery.
This topic is shared by BAW, CP4BA, CP4BASaaS. Last updated on 2025-03-13 12:15