Description: Deletes a cleanup policy. For information on deleting a cleanup policy via the UI, see Delete a 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/packages/policies/{policyKey}
Query Parameters
Field] | Type | Description |
---|---|---|
| string | The ID that identifies the policy. This ID was configured when creating the policy. You can find the policy ID by calling Get all Cleanup Policies API, searching the results for the appropriate description and then its corresponding ID. |
Response Error Codes
Code | Description |
---|---|
400 | Validation errors. |
404 | A policy with the specified key does not exist. |
500 | Internal server error. |