Home / Platform management / DevOps toolchain / Tool Operations / Execute an artifact cleanup policy

Execute an artifact cleanup policy

Execute an artifact cleanup policy to simulate or immediately delete matched artifacts.

Manually execute

You can manually execute the artifact cleanup operation immediately.

Simulated execution

Simulate the execution of the artifact cleanup policy to preview the results.

Tip: Simulated execution does not actually perform the cleanup operation.

  1. In the left navigation bar, click DevOps Toolchain > Artifact Cleanup.

  2. After selecting the artifact cleanup policy, click Actions > simulation execute. Preview the cleanup results in the pop-up window and close it to perform the execution operation.

Immediate execution

Immediately execute the artifact cleanup policy to delete matched artifacts.

Tip: After successful execution, the matched artifacts will be permanently deleted and cannot be recovered. It is recommended to preview the cleanup results through simulation execute before immediate execution to ensure consistency with expectations.

  1. In the left navigation bar, click DevOps Toolchain > Artifact Cleanup.

  2. After selecting the cleanup policy, click Start and confirm.

Automatic execution

You can periodically perform the artifact cleanup operation by configuring a scheduled trigger.

Configure triggers

The platform supports configuring scheduled triggers to cyclically trigger pipelines.

  1. In the left navigation bar, click DevOps Toolchain > Artifact Cleanup.

  2. After selecting the cleanup policy, switch to the Trigger tab and refer to the following instructions to configure the relevant parameters.

    • Day-based: Supports selecting a specified time within a week and triggering it cyclically.

    • Custom: Use a custom Crontab expression to define the trigger rule. The rule can refer to How to set up a scheduled trigger rule? .

Disable/Enable trigger configuration

Disable/enable the created artifact trigger.

  1. In the left navigation bar, click DevOps Toolchain > Artifact Cleanup.

  2. After selecting the cleanup policy, switch to the Trigger tab.

  3. Click > Disable/Enable next to the trigger name.

Relevant operations

View artifact cleanup log

View the log information generated by each artifact cleanup execution and count the cleaned artifact information.

  1. In the left navigation bar, click DevOps Toolchain > Artifact Cleanup.

  2. After selecting the cleanup policy, switch to the Execution Record tab.

  3. View the Steps, Cleanup Time, Cleanup Method, and Cleanup Status generated by each cleanup.

  4. Click to view the log.

Update/Remove the trigger configuration

Update/remove the created artifact trigger.

  1. In the left navigation bar, click DevOps Toolchain > Artifact Cleanup.

  2. After selecting the cleanup policy, switch to the Trigger tab.

  3. Click > Update/Delete next to the trigger name.

  4. Update or delete the trigger.

Update or delete an artifact cleanup policy

Update or delete the created artifact cleanup policy rules.

  1. In the left navigation bar, click DevOps Toolchain > Artifact Cleanup.

  2. After selecting the cleanup policy, click Actions > Update/Delete.

  3. Update or delete the cleanup policy.

Delete execution records

Delete the logs of executing artifact cleanup in the artifact repository project.

  1. In the left navigation bar, click DevOps Toolchain > Artifact Cleanup.

  2. After selecting the cleanup policy, switch to the Execution Record tab.

  3. Click and confirm.