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:
The following examples illustrate how to use the REST API to delete versions:
  • Delete archived named versions V01 and V02 of the TK1 toolkit:
    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) APP1 created before version V20:
    DELETE http://host:port/ops/std/bpm/containers/APP1/versions?created_before_snapshot=V20
  • Delete all unnamed versions of application APP1 created before a point in time:
    DELETE http://host:port/ops/std/bpm/containers/APP1/versions?created_before=2016-10-01T00:00:00-06:00
    Remember: 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:00 in your URL. Alternatively, you can specify a UTC date, for example created_before=2016-01-01T01:00:00Z.