Delete Release Bundle Cleanup Policy API

JFrog REST APIs

Content Type
REST API

Description: Deletes a cleanup policy. For information on deleting a cleanup policy via the UI, see Delete Cleanup Policy.Delete Cleanup Policy

Note

A policy cannot be deleted if it is currently running. If you want to delete a policy that is running, you need to either wait for the policy to stop running, or manually stop the run by calling Stop a Running Cleanup Policy API.

Security: Requires a platform admin. A project admin with permission can call this API on the project level.

Usage: DELETE /artifactory/api/cleanup/bundles/policies/{policyKey}

Sample Request

DELETE https://[JFrogPlatformURL]/artifactory/api/cleanup/bundles/policies/key1

Query Parameters

Field]

Type

Description

policyKey

string

The ID that identifies the policy. This ID was configured when creating the policy.

Response Error Codes

Code

Description

400

Validation errors.

404

A policy with the specified key does not exist.

500

Internal server error.