Clean BOS Storage Space
After an image version is deleted, the associated image data stored in Baidu AI Cloud Object Storage (BOS) will still remain. If not cleared promptly, additional costs may be incurred. Use the artifact cleanup feature to delete invalid image version-related data in BOS, freeing up BOS storage space and lowering storage costs. This article explains the steps to use the artifact cleanup feature for BOS storage optimization.
Note
- Only instances of the Enterprise Edition support BOS storage cleanup. When performing BOS storage cleanup, it will remove the BOS space occupied by invalid image versions across all image repositories of the Enterprise Edition instance.
- The artifact cleanup task will delete the image layer data in all image repositories of the instance that are no longer linked to valid image versions. This action is irreversible. It is recommended to perform a simulation run beforehand to assess the impact scope before carrying out an actual cleanup task.
- The time required to complete the artifact cleanup task depends on the size of image data stored in BOS and the number of historical image versions. Temporary pausing of the task is currently not supported. It is advised to schedule cleanup tasks during non-business hours.
Operation steps
Simulate cleanup execution
- Sign in to Cloud Container Registry Console.
- In the left-hand navigation bar, go to "Instance List," and then click on the desired instance from the Instance List page.
- Select Artifact Cleanup in the left navigation bar on the Instance Management page.
- On the artifact cleanup page, you can view the list of artifact cleanup tasks associated with the current instance.
- Click Simulate Cleanup Execution and carefully read the relevant prompts.
-
Click "OK" to initiate a simulated cleanup task.
Note
- The simulated cleanup will thoroughly scan the cleanable image data in the instance, estimate the cleanup scope and time, and will not delete any image data stored in BOS.
- During the simulated cleanup, the basic functionalities of the instance remain unaffected (pushing and pulling artifacts are still possible), but resource-intensive computing tasks might impact the performance of some instance functions.
Execute cleanup immediately
- Sign in to Cloud Container Registry Console.
- In the left-hand navigation bar, go to "Instance List," and then click on the desired instance from the Instance List page.
- Select Artifact Cleanup in the left navigation bar on the Instance Management page.
- On the artifact cleanup page, you can view the list of artifact cleanup tasks associated with the current instance.
- Click Execute Cleanup Immediately and carefully read the relevant prompts.
-
Click "OK" to execute the cleanup task immediately.
Note
- During the artifact cleanup process, you can still push and pull artifacts within the instance. The task duration depends on the amount of artifact data within the instance and its usage timeline.
- You can monitor the size of cleaned-up images in real time on the "Artifact Cleanup" page.
Execution results
View the cleanup task on the Artifact Cleanup page. When the cleanup status shows Completed, it indicates that the artifact cleanup is finished. Click View Logs to check the log information of the cleaned images.
