Manage Cleanup Runs
You can view cleanup policy runs, stop all running policies, and download run reports in Artifactory. Each section describes the UI steps and links to the equivalent REST API where one is available.
Supported Actions
- View all runs: Review past and ongoing cleanup runs, including deleted items, timestamps, and run status.
- Stop all runs: A Platform Admin can stop every cleanup policy that is currently running.
- Download and review a run report: Download a CSV report of the items a run deleted, or would delete in a dry run.
View All Cleanup Runs
This section outlines how to view the status of both past and ongoing cleanup runs. It provides guidance on how to review specific details, including the items that have been deleted, the associated timestamps, the status of each cleanup operation, and applying filters to view the desired information.
Permissions: Only a Platform Admin or a Project Admin can view cleanup runs. A Project Admin can view runs within their project.
To view the Cleanup policy runs:
-
From the Administration module, select Artifactory Settings > Retention Policies.
-
In the Retention Policies page, click Cleanup.
-
From the Runs tab, under Runs, locate the run you want to review. The Run Id column is hidden by default.
In this list, you can review a comprehensive history of executed cleanup policies, including the start time, number and physical size of deleted items, and run status. The list is sorted chronologically, with the most recent run at the top. For more information, see Cleanup Runs Table Fields.
-
To view a report on a specific policy run, locate the run, and then click the Report icon.
A zip file is downloaded containing one or more
.csvfiles. If the report is for a dry run, it will show the items that would be deleted in a real run. If it's for an actual cleanup run, it will detail what was deleted.
Note
- Reports are created and stored in a dedicated repository called
jfrog-policy-reports-local. We recommend not deleting this repository to maintain a history of policy executions and their results. Deleting it will result in the loss of this history.- If no items are deleted (for a real run) or deleted (for a dry run), a report will not be generated.
- The number of previous runs included in the history is defined by the
artifactory.policy.cleanup.nodes_cleaned.expiration.dayssystem property. For more information, see Cleanup Policies System Properties.
Cleanup Runs Table Fields
The runs list includes these columns:
- Run Id: The identifier of the run. This column is hidden by default.
- Global: Whether the policy applies at the global level. A global policy may affect multiple projects. A Platform Admin can manage it on the Global Scope only.
- Project: The name of the project.
- Object Type: The type of object. It can be Packages, Release Bundles, or Builds.
- Policy Name: The name of the policy.
- Start Time: The date and time when the cleanup operation started running.
- Cleaned Items (Physical Size): The number of deleted items out of the total items, and the deleted size.
- Status: The status of each policy execution:
Completed (dry run): The policy has been executed successfully, with no errors.
Completed: The policy has been executed successfully, with no errors.
Completed with Errors: The policy execution has been completed, but there were some errors. Check the logs for details.
Completed with Errors (dry run): The policy has been executed with errors.
In Progress: The policy execution is in progress and there are no errors.
In Progress with Errors: The policy execution is in progress and there are errors.
Stopping: The user has manually stopped the policy execution, and it is currently being stopped.
Stopped: The user manually stopped the policy execution.
Failed: The policy execution has failed.
- Report: The report download state:
- Enabled: The report is available for download.
- Selected: The download icon is clicked.
- Disabled: The report is not available.
Customize Table Columns
Arrange the table columns according to how you want to view them.
To display and arrange the columns:
-
From the table header, click Customize Columns at the end.
-
In the Customize Columns dialog, select which columns to display and drag them to reorder.
-
Click Apply.

Apply Filters to Sort Run Results
You can apply the filter to the run results to easily access your desired view.
To apply filters:
-
Click the Filter icon in the table header.
-
Apply the following fields as you want to sort:
- Policy Name: Enter the name of the policy and choose the policy from the list.
- Project: Enter the name of the project and choose the project from the list.
- Start Time: Select from the dropdown list or customize the time range using the calendar.
- Status: Select the run status from the available list. For more information on statuses, see Cleanup Runs Table Fields and the Status field.
- Object Type: Select Packages, Release Bundle, or Builds to filter runs by policy type.
- Other: Select Hide Blank Executions to hide runs that deleted no packages, or select the other available options as applicable.
-
To remove applied filters, click Clear all.

Refresh Cleanup Runs
If you don't see the latest created runs in the list, you can refresh the runs to view them.
To refresh runs:
- Click the Refresh icon in the table header.

Stop All Cleanup Policy Runs
As a Platform Admin, you can stop all currently running cleanup policies. Once a policy run is stopped, it cannot resume from its last point. You must restart the policy from the beginning to rerun it.
For the full procedure, see Stop All Cleanup Policy Runs.
To stop all running cleanup policies using the REST API, see Stop All Running Cleanup Policies.
Permissions: Only a Platform Admin can stop all running policies, and only from the global context.
Download and Review Cleanup Run Report
This section outlines how to download a cleanup run report. The report is in CSV format and lists all deleted items with relevant information. You can review the list to learn about the deleted items.
To download a run report using the REST API, see Download Cleanup Policy Run Report.
Permissions: Only a Platform Admin or a Project Admin can download a run report. A Project Admin can download reports within their project.
Note
The report is generated for both actual run and dry run.
To download the report:
-
From the Administration module, select Artifactory Settings > Retention Policies.
-
In the Retention Policies page, click Cleanup.
-
From the Runs tab, under Runs, locate the run for which you want to download the report, and then click the Download icon.
A zip file is downloaded containing one or more
.csvfiles.Possible Download icon statuses are as follows:
| Icon | State | Description |
|---|---|---|
![]() | Enabled | Indicates the report is available for download. |
![]() | Hover | On hovering the mouse pointer, the icon is highlighted. |
![]() | Selected | Indicates the download icon is clicked. |
![]() | Disabled | Indicates the report is not available. |
- Review the downloaded report. For more information, see Cleanup Run Report Overview.
Cleanup Run Report Overview
The downloaded CSV report provides a detailed summary of the cleanup process, including information on the policy used, the status of the run, and the items processed.
Package Cleanup Report Fields
-
Run General Details: The general details of the cleanup run.
-
cleanup run for
<policy-name><status>: The policy name and current status of the cleanup run. -
isDryRun: Indicates whether the run was a dry run or an actual run.
- True: Dry run (no changes made).
- False: Actual run (changes applied).
-
Run Start Time: The timestamp when the cleanup process started.
-
Duration: The total time taken for the cleanup process.
-
Run Summary: The summary of the cleanup run.
-
cleanup packages count: The total number of packages successfully deleted.
-
Total packages count: The total number of packages processed during the cleanup.
-
Packages virtual size: The virtual size of all deleted packages.
-
Packages physical size: The actual physical size of all deleted packages.
-
Policy Configuration For This Run: Indicates the configuration details of the policy.
-
Policy Key: The name of the cleanup policy used for this run.
-
Description: A description of the cleanup policy.
-
Cron Expression: The cron expression used to schedule the cleanup runs.
-
Max Run Duration: The maximum duration allowed for the policy to run.
-
Skip Trash Can: Indicates if the trash can was skipped during the cleanup.
- Enabled: Trash can is skipped.
- Disabled: Trash can is not skipped.
-
Created By: The user who created the policy.
-
Creation Time: The timestamp when the policy was created.
-
Last Modified By: The user who last edited the policy.
-
Last Modification Time: The timestamp when the policy was last edited.
-
Projects: The project name associated with the policy.
-
Included in Projects: The projects to which the policy is assigned. For Global policies, it indicates which projects the policy applies to. It includes:
ALL: This option indicates that the policy is shared with all projects. This is selected when the Include All Projects checkbox is checked in the policy settings.
N/A: This option indicates that the policy is not applicable to any specific projects.
Note: Applicable for Global Policies only.
-
Package Types: The package types the policy applies to.
-
Included in Repositories: The repositories the policy applies to.
-
Excluded from Repositories: The repositories not affected by the policy.
-
Include Package Name Pattern: The name pattern applied to select packages for deleting.
-
Include Package Version Pattern: The version pattern applied to select packages for deletion.
-
Exclude Package Name: The name pattern applied to exclude packages from deleting.
-
Exclude Package Version Pattern: The version pattern applied to exclude packages from deletion.
-
Include Path Patterns: The folder path patterns applied to select packages for deletion.
-
Exclude Path Patterns: The folder path patterns applied to exclude packages from deletion.
-
Include Lead Package Property: The lead package property applied to select packages for deletion.
-
Exclude Package Property: The package property applied to exclude packages from deletion.
-
Age Condition (older than): The age-based condition for selecting packages (for example, older than a specified time).
-
Usage Condition (not downloaded since): The condition for selecting packages based on usage (for example, not downloaded since a certain date).
-
Version (Number of latest versions to keep): The number of latest versions to retain. Older versions are deleted.
-
Run Detailed Summary: Indicates the detailed cleanup run summary:
- Package name: The name of the deleted package.
- Version: The version of the deleted package.
- Size: The size of the package on the disk.
- Repository: The repository from which the package was deleted.
- Repository Type: The type of the repository (for example, Local or Federated).
- Status: The status of the cleanup operation (for example, deleted).
- Status Message: A brief message indicating the result of the cleanup operation:
- Successfully Cleaned: Package was successfully deleted.
- Cleanup Failure: Package deletion failed. For more information, see Artifactory Service Log.
- Package Not Found: Package was not found.
- Dry Run Status:
- Dry run successfully processed the package.
- Dry run failed to process the package.
- Package path: The full path to the package location.
- Created date: The timestamp when the package was created.
- Modified date: The timestamp when the package was last edited.
- Last Downloaded date: The timestamp when the package was last downloaded.
Release Bundle Cleanup Report Fields
-
Run General Details: The general details of the cleanup run.
-
cleanup run for
<policy-name><status>: The policy name and current status of the cleanup run. -
isDryRun: Indicates whether the run was a dry run or an actual run.
- True: Dry run (no changes made).
- False: Actual run (changes applied).
-
Run Start Time: The timestamp when the cleanup process started.
-
Duration: The total time taken for the cleanup process.
-
Run Summary: The summary of the cleanup run.
-
Cleaned release bundles count: The total number of cleaned release bundles.
-
Total release bundle count: The total number of release bundles processed during the cleanup.
-
Policy Configuration For This Run: Indicates the configuration details of the policy.
-
Policy Key: The name of the cleanup policy used for this run.
-
Description: A description of the cleanup policy.
-
Cron Expression: The cron expression used to schedule the cleanup runs.
-
Max Run Duration: The maximum duration allowed for the policy to run.
-
Created By: The user who created the policy.
-
Creation Time: The timestamp when the policy was created.
-
Last Modified By: The user who last edited the policy.
-
Last Modification Time: The timestamp when the policy was last edited.
-
Projects: The project name associated with the policy.
-
Included in Projects: The projects to which the policy is assigned.
-
Include Release Bundles Names: The names of the selected release bundles for deleting.
-
Age Condition (older than): The age-based condition for selecting release bundles (for example, older than a specified time).
-
Not Promoted To Stages: The release bundle was not promoted to.
-
Included Stages: The promotion stages selected for the policy.
-
Include All Stages: Indicates whether the policy applies to all promotion stages.
-
Run Detailed Summary: Indicates the detailed cleanup run summary.
- Release Bundle name: The name of the deleted release bundle.
- Version: The version of the deleted release bundle.
- Creation Time: The Timestamp at which the release bundle created.
- Created by: The name of the user who created the release bundle.
- Promoted To: The release bundle promoted to environment.
- Status: The status of the cleanup operation (for example, deleted).
- Status Message: A brief message indicating the result of the cleanup operation. The Status Message can be one of the following:
- Successfully Cleaned: Release bundle version was successfully deleted.
- Cleanup Failure: Release bundle version delete failed. For more information, see Artifactory Service Log.
- Dry Run Status:
- Dry run successfully processed the release bundle version.
- Dry run failed to process the release bundle version.
- Distribution not installed: Distribution service is unavailable.
- Distribution is installed and the version is never distributed:
- The release bundle version was successfully deleted.
- The dry run successfully processed the release bundle version.
- Distribution is installed and a version was attempted to be distributed but always failed: Same as when cleaned successfully.
- Distribution is installed and the version was distributed successfully: Release bundle version is already distributed to one or more edge nodes.
- Distribution is installed and API returns any other response status code: Unable to validate distribution status due to unknown reasons. For more information, see artifactory-service.log.
Build Cleanup Report Fields
-
Run General Details: The general details of the cleanup run.
-
cleanup run for
<policy-name><status>: The policy name and current status of the cleanup run. -
isDryRun: Indicates whether the run was a dry run or an actual run.
- True: Dry run (no changes made).
- False: Actual run (changes applied).
-
Run Start Time: The timestamp when the cleanup process started.
-
Duration: The total time taken for the cleanup process.
-
Run Summary: The summary of the cleanup run.
-
cleanup builds count: The total number of builds successfully deleted.
-
Total builds count: The total number of builds processed during the cleanup.
-
Builds virtual size: The virtual size of all deleted builds.
-
Builds physical size: The actual physical size of all deleted builds.
-
Policy Configuration For This Run: Indicates the configuration details of the policy.
-
Policy Key: The name of the cleanup policy used for this run.
-
Description: A description of the cleanup policy.
-
Cron Expression: The cron expression used to schedule the cleanup runs.
-
Max Run Duration: The maximum duration allowed for the policy to run.
-
Skip Trash Can: Indicates if the trash can was skipped during the cleanup.
- Enabled: Trash can is skipped.
- Disabled: Trash can is not skipped.
-
Created By: The user who created the policy.
-
Creation Time: The timestamp when the policy was created.
-
Last Modified By: The user who last edited the policy.
-
Last Modification Time: The timestamp when the policy was last edited.
-
Selected Projects: The project name associated with the policy.
-
Include All Projects: The projects to which the policy is assigned.
-
Include Build Names: The name pattern applied to include builds for deleting.
-
Age Condition (older than): The age-based condition for selecting builds (for example, older than a specified time).
-
Delete Build Artifacts: Indicates if the build artifacts are deleted.
-
Run Detailed Summary: Indicates the detailed cleanup run summary:
- Build name: The name of the deleted build.
- Build number: The number of the deleted build.
- Creation Time: The timestamp at which the build was created.
- Created By: The user who created the build.
- Artifacts count: The number of the artifacts.
- Artifacts virtual size: The virtual size of artifacts associated with the build.
- Associated Release Bundles: Build associated with the release bundles.
- Status: The status of the cleanup operation (For example, deleted).
- Status Message: A brief message indicating the result of the cleanup operation:
- Deleted: Build was successfully deleted.
- Partially Deleted: Build artifacts were partially deleted. X of Y artifacts deleted successfully. Check the remaining artifacts.
- Error: Build number delete failed. For more information, see Artifactory Service Log.
- Skipped: Unable to delete the build number. For more information, see Artifactory Service Log. Deletion of build number was skipped due to an associated release bundle. Set a release bundle retention policy first.
- Dry Run Completed:
- Dry run successfully processed the build.
- Dry run failed to process the build.
- Dry Run Error: Dry run failed to process the build number.
FAQs
The following are frequently asked questions about cleanup policy runs in JFrog Artifactory.
FAQs
Q: Where can I see the status of a cleanup run?
A: In the Runs tab, check the Status column. For the full list of statuses, see Cleanup Runs Table Fields.
Q: What does Completed with Errors mean?
A: The run finished, but some errors occurred. Check the logs for details. See Artifactory Service Log.
Q: How do I download a run report?
A: In the Runs tab, click the Report icon for the run. The download is a zip file that contains one or more CSV files. See Download and Review Cleanup Run Report.
Q: Why is there no report for a run?
A: A report isn't generated when a real run deletes no items, or when a dry run would delete no items. See Cleanup Run Report Overview.
Q: Where are reports stored, and how long is run history kept?
A: Reports are stored in the jfrog-policy-reports-local repository. Don't delete this repository, because you lose the run history if you do. The number of previous runs kept is set by the artifactory.policy.cleanup.nodes_cleaned.expiration.days system property. See Cleanup Policies System Properties.
Q: Who can stop all running policies?
A: Only a Platform Admin can, and only from the global context. Project Admins can't use this option. See Stop All Cleanup Policy Runs.
Related Topics
Updated about 2 hours ago




