After the system runs for a long time, it will accumulate a large number of unused application packages, mostly those automatically built and uploaded from pipelines. These application packages occupy a large amount of storage space.
To clear storage space, the system allows the user to configure an auto-clear policy. After the configured retention period expires, the system will clear unused application packages (except Helm application packages) in the private repositories automatically. The remaining retention period for each application package in the application package list is calculated from the time when the application package is uploaded to the system.
To configure storage space auto-clear settings:
On the top navigation bar, click Business Apps.
From the left navigation pane, select Software Center > App Repositories.
Click the Private Repository tab.
Click Space Clear Settings.
Select Auto Clear and configure an auto-clear policy. You can select Inherit Configuration of Parent Organization or Custom Configuration. A root user can only select Custom Configuration.
Table-1 Configuring an auto-clear policy
Parameter |
Description |
Inherit Configuration of Parent Organization |
Inherits the auto-clear policy from the parent organization.
|
Custom Configuration |
Custom configuration is disabled for the root user by default. Select whether to enable auto clear. If you disable auto clear, the system does not clear unused application packages automatically. If you enable auto clear, set a retention period for the applications packages as needed. The maximum retention period is 180 days. Unused application packages are deleted automatically after the retention period expires. |