Enable/Disable Cleanup Policy

JFrog Platform Administration Documentation

Content Type
Administration / Platform
ft:sourceType
Paligo

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:

  1. As per the User persona, you can work with the contexts as described below:

    • Global Context

      Note

      Applies to Platform Admin only.

      1. From the Projects drop-down list, click All Projects.

      2. From the Administrator module, click Artifactory Settings, and then click Retention Policies.

        The Retention Policies page appears.

        HC_CreatePolicyPlatformAdmin.png
    • Project Context

      Note

      Applies to both Platform Admin and Project Admin.

      1. From the Projects drop-down list, choose the desired project.

      2. From the Administrator module, click Artifactory, and then click Retention Policies.

        The Retention Policies page appears.

        HC_CreatePolicyProjectAdmin.png
  2. In the Retention Policies page, click Cleanup.

  3. From the Policies tab, under Policies, locate the policy you want to enable/disable, and then toggle the slider enabledpolicy.png under the Active column.

    EnableCleanup.png

    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.