Deleting a version
If the version of the project you want to delete is not the first version on a branch or
it is exactly the same as the current version, you can delete it in IBM Business Automation Studio by selecting
Delete on the version's three-dot menu. Otherwise, use a REST API call to
delete a version.
To use a REST API call to delete a version, you must be a member of the administrator group.
Call the operations REST API
DELETE
https://host:port/ops/std/bpm/containers/acronym/versions
where acronym is the acronym of the project that contains the versions to delete. Note:
- Ensure you provide the version acronyms and archive named versions.
- BPMCSRFToken is required for this REST API. For more information, see Preventing cross site request forgery.
The following examples illustrate how to use the REST API to delete
versions:
-
- Delete archived named versions
V01andV02of theTK1toolkit:DELETE http://host:port/ops/std/bpm/containers/TK1/versions?versions=V01,V02 - Delete all unnamed versions except the tip version of toolkit
TK1:DELETE http://host:port/ops/std/bpm/containers/TK1/versions?kept_number=0 - Delete all unnamed versions of business application (application)
APP1created before versionV20:DELETE http://host:port/ops/std/bpm/containers/APP1/versions?created_before_snapshot=V20 - Delete all unnamed versions of application
APP1created before a point in time:DELETE http://host:port/ops/std/bpm/containers/APP1/versions?created_before=2016-10-01T00:00:00-06:00Remember: 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.
- Delete archived named versions