Manage Smart Archiving Policies
You can view, search, dry run, enable, disable, run, stop, edit, and delete Smart Archiving policies from the Active Artifactory Instance, and download run reports. Each section describes the UI steps and links to the equivalent REST API.
Supported Actions
- View All Smart Archiving Policies: Review each policy's status, project, last run status, next run, and available actions.
- Search Smart Archiving Policy: Find a Smart Archiving policy by name.
- Perform Dry Run on a Smart Archiving Policy: Preview which packages a policy would archive without archiving them.
- Enable/Disable Smart Archiving Policy: Turn a policy on so it runs on its schedule or when you trigger it, or turn it off.
- Disable All Smart Archiving Policies: A Platform Admin can turn off every Smart Archiving policy at once.
- Run Smart Archiving Policy Manually: Run an enabled policy immediately, in addition to its scheduled runs.
- Download Smart Archiving Policy Last Run Report: Download a CSV report of the packages from the last run.
- Stop Running Smart Archiving Policy: Stop a Smart Archiving policy while it is running.
- Stop All Smart Archiving Policy Runs: Stop every Smart Archiving policy that is currently running.
- Edit Smart Archiving Policy: Change a policy's settings or archive criteria.
- Delete Smart Archiving Policy: Remove a Smart Archiving policy you no longer need.
View All Smart Archiving Policies
This section outlines how to view all Smart Archiving policies. It guides you in reviewing key details such as the policy status, associated projects with the policy, timestamps for the next scheduled run, last run status, actions performed on each policy, and options for customizing table columns.
To get all Smart Archiving policies using the REST API, see Get All Smart Archiving Policies. Use this command to get the policies for a project:
curl -X GET "https://<JFROG_HOSTNAME>/artifactory/api/archive/v2/packages/policies?projectKey=<PROJECT_KEY>" -H "Authorization: Bearer <ACCESS_TOKEN>"Where:
<JFROG_HOSTNAME>: Your JFrog Platform hostname<PROJECT_KEY>: The key of the project. This parameter is optional for a Platform Admin and required for a Project Admin.<ACCESS_TOKEN>: Your access token
For example:
curl -X GET "https://company.jfrog.io/artifactory/api/archive/v2/packages/policies?projectKey=myproject" -H "Authorization: Bearer <ACCESS_TOKEN>"To view all Smart Archiving policies:
- From the Administration module, select Artifactory Settings > Retention Policies.
- In the Retention Policies page, click Archive.
- Under the Policies tab, you can view all the policies.
Archive Policy Table Fields
The policies list includes these columns:
- Policy Name: The name of the policy.
- Project: The name of the project. Unassigned Repos: Only repositories not assigned to a project will be affected.
- Last Run Status: The status of the last policy execution. For the list of run statuses, see Archive Runs Table Fields.
- Next Run: The next scheduled run.
- Enabled: Whether the policy is enabled or disabled:
- Enabled: The policy has been enabled. You can run the policy manually, or it runs according to the defined schedule.
- Disabled: The policy has been disabled. You can perform a dry run, but not a manual or scheduled run.
More Actions
From the more icon, you can perform these actions on a policy, based on the Last Run Status:
- Run: Manually run the enabled policy.
- Dry Run: Review which packages will be archived on the actual run.
- Edit: Edit the policy to make necessary changes.
- Stop: Stop a running policy.
- Download Last Report: After the run completes, download the last run report for that Last Run Status.
- For Actual Run: What packages were archived for the actual run.
- For Dry Run: What packages will be archived on the actual run.
- Delete: Delete the policy from the system.
The more icon shows one of these states:
Active: The more actions are available.
Hover: The mouse pointer is hovering over the more icon.
Disabled: The more actions are disabled.
New: The policy is newly created.
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.
-
In the Customize Columns window, select which columns to display and drag them to reorder.
-
Click Apply.

Refresh Policies
To refresh policies:
- Click the Refresh icon in the table header.
Search Smart Archiving Policy
This topic outlines how to search for a Smart Archiving policy to locate the desired policy easily.
To get a single Smart Archiving policy by key using the REST API, see Get Single Smart Archiving Policy by Key.
Permissions: Only a Platform Admin or a Project Admin can search Smart Archiving policies. A Project Admin can search within their project.
To search the Smart Archiving policy:
-
From the Administration module, select Artifactory Settings > Retention Policies.
-
In the Retention Policies page, click Archive.
-
Click the Policies tab.
-
In the Search field, enter the policy name.
-
Press Enter on the keyboard.

Perform Dry Run on a Smart Archiving Policy
This section outlines how to perform a dry run on a Smart Archiving policy. A dry run lets you preview which packages will be archived based on your defined policy criteria, without performing the actual archiving. This helps you understand the potential outcome before executing the policy. After the dry run, a CSV report is generated, listing all packages that would be archived along with relevant details. Review this list to decide whether to proceed with the policy or adjust the settings.
To run a Smart Archiving policy using the REST API, see Run Smart Archiving Policy.
Permissions: Only a Platform Admin or a Project Admin can perform a dry run. A Project Admin can perform a dry run within their project.
Note
- We recommend performing a dry run and reviewing the results before activating a policy to prevent unintended archiving.
- Dry run results reflect the specific point in time when the dry run is performed. The results of an actual policy execution may differ, as it occurs at a later scheduled time.
To perform a dry run on a Smart Archiving policy:
-
From the Administration module, select Artifactory Settings > Retention Policies.
-
In the Retention Policies page, click Archive.
-
From the Policies tab, under Policies, locate the policy you want to run, click the ••• icon and then click Dry Run.

-
After the dry run is completed:
- Download the report from Download Smart Archiving Policy Last Run Report or Download and Review Smart Archiving Run Report.
- Review its status report, as explained in Smart Archiving Run Report Overview.
Enable/Disable Smart Archiving Policy
This topic outlines how to enable or disable a Smart Archiving policy. By default, newly created archive policies are disabled. You must activate a policy before it can execute automatically according to the schedule or be triggered manually.
To enable or disable a Smart Archiving policy using the REST API, see Enable or Disable Smart Archiving Policy.
Permissions: Only a Platform Admin or a Project Admin can enable or disable a Smart Archiving policy. A Project Admin can do this within their project.
Note
We recommend that you first perform a dry run and review its results before you enable a policy. This helps prevent unintended archiving. For more information, see Perform Dry Run on a Smart Archiving Policy.
The following actions can be performed on a disabled policy:
- Perform Dry Run on a Smart Archiving Policy
- Edit Smart Archiving Policy
- Delete Smart Archiving Policy
To enable or disable the Smart Archiving policy:
-
From the Administration module, select Artifactory Settings > Retention Policies.
-
In the Retention Policies page, click Archive.
-
From the Policies tab, under Policies, locate the policy you want to enable or disable, and then toggle the slider
under the Enabled 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 Smart Archiving Policy Manually.
Disable All Smart Archiving Policies
This topic outlines how to disable all Smart Archiving policies. As a Platform Admin, you can disable all policies globally, making them inactive. Once this is done, you can activate policies individually as needed.
To disable all Smart Archiving policies using the REST API, see Disable All Smart Archiving Policies.
Permissions: Only a Platform Admin can disable all Smart Archiving policies, and only from the global context.
Note
The option to disable all policies is not available to Project Admins. The Disable All Policies option can be viewed in the global context only.
To disable all the Smart Archiving policies:
-
From the Administration module, select Artifactory Settings > Retention Policies.
-
In the Retention Policies page, click Archive.
-
From the Policies tab, click Global Stop/Disable dropdown list, and then click Disable All Policies.

-
Check the Enabled column in the policies list to verify that all policies are now disabled.
Run Smart Archiving Policy Manually
This topic outlines how to run a Smart Archiving policy manually. In addition to the periodic automated execution of the Smart Archiving policy that occurs if you enable the policy and set its Cron Expression, you can also manually run the archive policy at any time.
To run a Smart Archiving policy using the REST API, see Run Smart Archiving Policy.
Permissions: Only a Platform Admin or a Project Admin can run a Smart Archiving policy manually. A Project Admin can run a policy within their project.
Note
To manually run a Smart Archiving policy, the policy must first be activated. For more information, see Enable or Disable Smart Archiving Policy.
To run the Smart Archiving policy manually:
-
From the Administration module, select Artifactory Settings > Retention Policies.
-
In the Retention Policies page, click Archive.
-
From the Policies tab, under Policies, locate the policy you want to run, click the ••• icon and then click Run.

-
After the run is completed:
- Download the completed report from Download Smart Archiving Policy Last Run Report or Download and Review Smart Archiving Run Report.
- Review the downloaded report. For more information, see Smart Archiving Run Report Overview.
Download Smart Archiving Policy Last Run Report
This section outlines how to download the last run report. The report is in CSV format and lists all archived packages with relevant information. You can review the list to learn about the archived packages.
To download a run report using the REST API, see Download Smart Archiving Policy Run Report.
Permissions: Only a Platform Admin or a Project Admin can download the last run report. A Project Admin can download a report within their project.
To download the report:
-
From the Administration module, select Artifactory Settings > Retention Policies.
-
In the Retention Policies page, click Archive.
-
From the Policies tab, under Policies, locate the policy for which you want to download the report, click the ••• icon, and then click Download Last Report.

A zip file is downloaded including one
.csvfile. -
Review the downloaded report. For more information, see Smart Archiving Run Report Overview.
Stop Running Smart Archiving Policy
This topic outlines how to stop a running Smart Archiving policy. You can stop a Smart Archiving policy that is currently running before it finishes completion.
To stop a running Smart Archiving policy using the REST API, see Stop Running Smart Archiving Policy.
Permissions: Only a Platform Admin or a Project Admin can stop a running Smart Archiving policy. A Project Admin can stop a policy within their project.
Note
Once a policy has been stopped, it cannot resume from the point where it stopped. The only way to run the policy again is to restart it from the beginning.
To stop the running Smart Archiving policy:
-
From the Administration module, select Artifactory Settings > Retention Policies.
-
In the Retention Policies page, click Archive.
-
From the Policies tab, under Policies, locate the policy you want to stop, click the ••• icon and then click Stop.

-
In the Status column of Runs tab, the status changes to Stopped for that run.
Stop All Smart Archiving Policy Runs
Platform Admins can stop all currently running policies from both the Policies tab and the Runs tab. Once a policy run is stopped, it cannot resume from its last point. You must restart the policy from the beginning to rerun it.
To stop all running Smart Archiving policies using the REST API, see Stop All Running Smart Archiving Policies.
Permissions: Only a Platform Admin can stop all running policies, and only from the global context.
Note
The option to stop all running policies is not available to Project Admins. The Stop All Runs option can be viewed in the global context only.
To stop all the Smart Archiving policy runs:
-
From the Administration module, select Artifactory Settings > Retention Policies.
-
In the Retention Policies page, click Archive.
-
From the Policies tab, click Global Stop/Disable, and then click Stop All Runs.

To verify that all runs have stopped, under the Policies tab, check the Last Run Status column to ensure that all runs have stopped.
Edit Smart Archiving Policy
This topic outlines how to edit a Smart Archiving policy. After a Smart Archiving policy has been created, you can change the settings or archive criteria.
To update a Smart Archiving policy using the REST API, see Update Smart Archiving Policy.
Permissions: Only a Platform Admin or a Project Admin can edit a Smart Archiving policy. A Project Admin can edit a policy within their project.
Note
You cannot update a running policy. If you want to update a policy that is running, you need to either wait for the run to complete or Stop Running Smart Archiving Policy.
To edit the Smart Archiving policy:
-
From the Administration module, select Artifactory Settings > Retention Policies.
-
In the Retention Policies page, click Archive.
-
From the Policies tab, under Policies, locate the policy you want to edit, click the ••• icon and then click Edit.
Edit
<Policy Name>Archive Policy page appears.
-
In the
<Policy Name>Archive Policy page, update the settings as needed, and then click Save.
Delete Smart Archiving Policy
If you decide that a Smart Archiving policy is no longer needed, you can delete it.
To delete a Smart Archiving policy using the REST API, see Delete Smart Archiving Policy.
Permissions: Only a Platform Admin or a Project Admin can delete a Smart Archiving policy. A Project Admin can delete a policy within their project.
Note
You cannot delete a running policy. If you want to delete a running policy, you need to either wait for the run to complete or Stop Running Smart Archiving Policy.
To delete the Smart Archiving policy:
-
From the Administration module, select Artifactory Settings > Retention Policies.
-
In the Retention Policies page, click Archive.
-
From the Policies tab, under Policies, locate the policy you want to delete, click the ••• icon and then click Delete.
The policy is deleted and removed from the Policies list.

Frequently Asked Questions
This section provides answers to frequently asked questions about managing Smart Archiving policies.
FAQs
Q: Are new Smart Archiving policies enabled by default?
A: No. Newly created archive policies are disabled until you enable them. See Enable or Disable Smart Archiving Policy.
Q: Can I run a dry run on a disabled policy?
A: Yes. Dry run, edit, and delete are allowed while a policy is disabled. Manual and scheduled runs are not. See Enable or Disable Smart Archiving Policy.
Q: What does a dry run produce?
A: A CSV report lists the packages that would be archived. Results are point-in-time. See Perform Dry Run on a Smart Archiving Policy.
Q: Can I delete or edit a running policy?
A: No. Wait for the run to complete, or stop the run first. See Delete Smart Archiving Policy and Edit Smart Archiving Policy.
Q: Can a stopped policy resume where it left off?
A: No. You must restart the policy from the beginning. See Stop Running Smart Archiving Policy.
Q: Who can disable all policies or stop all runs?
A: Platform Admins can do this in the global context only. Project Admins cannot. See Disable All Smart Archiving Policies.
Q: Must a policy be enabled before you run it manually?
A: Yes. Enable the policy before you run it manually. See Run Smart Archiving Policy Manually.
Related Topics
Updated about 1 hour ago
