Updated on 2025-08-05 GMT+08:00

Clearing Policies

Release Repos automatically clears files on a scheduled basis. You can set a clearing policy to move expired files from the repository to the recycle bin or delete them permanently from the recycle bin based on the specified retention periods.

Setting Clearing Policies

  1. Click a project card to access the project, and choose Artifact > Release Repos from the menu bar.
  2. Click Old Repo in the lower left corner.
  3. Click the Settings tab.
  4. Enable Move expired files to the Recycle Bin or Clear from Recycle Bin as required, and select a retention period from the drop-down list.

    Default retention periods:

    • Move expired files to Recycle Bin: 15 days
    • Clear from Recycle Bin: 15 days

      You can also set a period. Click Customize, enter a number, and click to save the setting.

      Parameters below are optional.

      • Skip files with released status: The system retains files in the production package state when clearing files.
      • Skip specified paths: The system retains packages that match the file paths you set when clearing files. You can set multiple file paths, each starting with a slash (/) and separated by semicolons (;).