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: