Updated on 2026-08-10 GMT+08:00

Setting Clearing Policies

Release repos automatically clear 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.

Procedure

  1. Access release repos using your Huawei Cloud account.
  2. In the upper right corner of the Release Repos page, click the Setting tab.
  3. 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 released files: 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 (;).