This topic outlines how to enable/disable a cleanup policy. By default, newly created cleanup policies are disabled. You must activate a policy before it can execute automatically according to the schedule or be triggered manually.
Note
We recommend that you first perform a dry run and review its results before you enable a policy. This helps prevent unintended deletion. For more information on performing a dry run, refer to Perform Dry Run Cleanup Policy.
To Enable or Disable the Cleanup policy, follow these steps:
As per the User persona, you can work with the contexts as described below:
Global Context
Note
Applies to Platform Admin only.
From the Projects drop-down list, click All Projects.
From the Administrator module, click Artifactory Settings, and then click Retention Policies.
The Retention Policies page appears.
Project Context
Note
Applies to both Platform Admin and Project Admin.
From the Projects drop-down list, choose the desired project.
From the Administrator module, click Artifactory, and then click Retention Policies.
The Retention Policies page appears.
In the Retention Policies page, click Cleanup.
From the Policies tab, under Policies, locate the policy you want to enable/disable, and then toggle the slider
under the Active column.
Once enabled, the policy will run automatically based on the schedule you set during creation. You can also run it manually, as detailed in the Run Cleanup Policy Manually.