DISTRIBUTION: How to delete release bundles from an Edge node in an air-gapped environment using REST API

AuthorFullName__c
Shisiya Sebastian
articleNumber
000005906
FirstPublishedDate
2023-11-11T17:59:54Z
lastModifiedDate
2025-07-22

DISTRIBUTION: How to delete release bundles from an Edge node in an air-gapped environment using REST API

After distributing release bundles over the air-gap, you may need to delete them from the Edge nodes and this article will guide you with that. This will be handy for automation purposes. 

To list the Release bundles in an Edge Node


Command: 

curl -u username:password "https://EDGE_ARTIFACTORY_HOST/artifactory/api/release/bundles"


Example:

$ curl -u username:password http://localhost/artifactory/api/release/bundles
{
  "bundles" : {
    "testretention" : [ {
      "version" : "v3",
      "created" : "2023-08-11T09:11:32.381Z",
      "status" : "COMPLETE",
      "keep" : false
    } ]
  }
}

To Delete the release bundle from the Edge node


Command:

curl -u username:password -X DELETE "https://EDGE_ARTIFACTORY_HOST/artifactory/api/release/bundles/{bundle-name}/{bundle-version}


Example:

$ curl -u username:password -X DELETE http://localhost/artifactory/api/release/bundles/testretention/v3
{ }

References:

  1. To distribute Release bundles in Air-Gapped Environment
  2. To list all the bundle versions
  3. To delete Release bundles from Edge Nodes