Remote Delete Release Bundle V2 Distribution

JFrog REST APIs

ft:sourceType
Paligo

Description: Deletes the Release Bundle V2 version from the distribution targets. (The Release Bundle version is not deleted locally.)

Since: 7.63.2 (Artifactory), 2.19.1 (Distribution)

Security: Requires permissions to delete Release Bundles; requires destination permissions to the target Release Bundle path.

Usage:POST /lifecycle/api/v2/distribution/remote_delete/{release_bundle_name}/{release_bundle_version}

Sample Request:

{
    "dry_run": false,
    "distribution_rules": [
        {
            "site_name": "*"
        }
    ]
}

The request includes the following information:

Property

Description

dry_run

Determines whether this should be a dry run to test if the release bundle can be deleted remotely from the Edge nodes matching the distribution rule.

The default value is false.

distribution_rules

Defines which distribution targets (site_name) to include when performing remote delete.

Sample Response:

{
    "id": 721286933968207872,
    "sites": [
        {
            "name": "infra-dist-yevdoa-08244892-edge-2",
            "service_id": "jfrt@01h2wh4psm4mhf04w2n00p0rp4",
            "type": "artifactory"
        },
        {
            "name": "infra-dist-yevdoa-08244892-edge-1",
            "service_id": "jfrt@01h2wh54qwn5rk1wp2rfzh032n",
            "type": "artifactory"
        },
        {
            "name": "infra-dist-yevdoa-08244892-edge-0",
            "service_id": "jfrt@01h2wh9ebwyw5v01nanend06zf",
            "type": "artifactory"
        }
    ]
}

The response includes the following information:

Property

Description

id

The ID number of the distribution operation.

sites

The name, service_id and type of each destination target.

Status Codes:

Code

Description

202

Accepted for Deletion

403

Permission Denied