Clean BOS Storage Space

CCR

  • Enterprise Edition API Reference
    • Appendix
    • Common Headers and Error Code
    • Enterprise Edition Instance APIs
    • Helm Chart Management Interface
    • Image access control APIs
    • Image Access Credential APIs
    • Image API
    • Image Migration APIs
    • Image On-demand Loading APIs
    • Image Registry APIs
    • Image Synchronization APIs
    • Namespace APIs
    • Overview
    • Service domain
    • Trigger APIs
  • Enterprise Edition Go-SDK
    • Enterprise Edition Instance
    • Initialization
    • Install the SDK Package
    • Overview
  • Enterprise Edition Operation Guide
    • Access configuration
      • Configure Access credentials
      • Configure Custom Endpoint
      • Configure IAM Access Control
      • Configure IAM Tag Permission Policy
      • Configure Robot Account
      • Network Access Control
        • Configure public network access control
        • Configure virtual private cloud access control
        • Network Access Control Overview
    • Container DevOps
      • Manage Trigger
    • Create Enterprise Edition Instance
    • Distribution Management
      • Cross-Instance Synchronization of Image
      • On-Demand Loading of Container Image
      • Using P2P Acceleration in CCE Clusters
    • Event notification
      • Configure Event Notification Alert
      • Image Push Failure Error Code and Handling Methods
    • Image Build
      • Build Based on Existing Image
    • Image Cleanup
      • Clean BOS Storage Space
      • Delete image version
      • Version Retention
    • Image Migration
      • Migrate External Image to Enterprise Edition Instance
    • Image security
      • Immutable image version
      • Security Scanning Container Image
    • Manage Namespace
    • OCI Artifact Management
      • Manage Helm Chart
      • Manage Image Registry
      • OCI Artifact Management Overview
  • Function Release Records
  • Personal Edition API Reference
    • Helm API
    • Image API
    • Image Migration APIs
    • Image Version and Image Version Scanning Interface
    • Namespace APIs
    • Overview
    • User APIs
  • Personal Edition Documentation Set
    • Account Permission Management
    • Cloud Container Engine (CCE) migration to CCR
    • Container Image Service Basic Operations
    • How to Perform Image Scanning
    • How to Upload Helm Chart
    • How to use the DockerHub image accelerator
  • Product Announcement
    • CCR Enterprise Edition Pricing Announcement
    • CCR Enterprise Edition Public Beta Announcement
    • CCR Personal Edition Announcement on Closing New Entry
    • CCR Personal Edition Announcement on Disabling Image Scanning Function
  • Product introduction
    • Core concepts
    • Enterprise Edition Different Specifications Differentiation Description
    • Key functions
    • Product advantages
    • Product Introduction
  • Product pricing
    • Billing overview
  • Quick Start
    • Enterprise Edition Quick Start
    • How to Build Docker Image
  • Service Level Agreement (SLA)
    • CCR Enterprise Edition Service Level Agreement
All documents
menu
No results found, please re-enter

CCR

  • Enterprise Edition API Reference
    • Appendix
    • Common Headers and Error Code
    • Enterprise Edition Instance APIs
    • Helm Chart Management Interface
    • Image access control APIs
    • Image Access Credential APIs
    • Image API
    • Image Migration APIs
    • Image On-demand Loading APIs
    • Image Registry APIs
    • Image Synchronization APIs
    • Namespace APIs
    • Overview
    • Service domain
    • Trigger APIs
  • Enterprise Edition Go-SDK
    • Enterprise Edition Instance
    • Initialization
    • Install the SDK Package
    • Overview
  • Enterprise Edition Operation Guide
    • Access configuration
      • Configure Access credentials
      • Configure Custom Endpoint
      • Configure IAM Access Control
      • Configure IAM Tag Permission Policy
      • Configure Robot Account
      • Network Access Control
        • Configure public network access control
        • Configure virtual private cloud access control
        • Network Access Control Overview
    • Container DevOps
      • Manage Trigger
    • Create Enterprise Edition Instance
    • Distribution Management
      • Cross-Instance Synchronization of Image
      • On-Demand Loading of Container Image
      • Using P2P Acceleration in CCE Clusters
    • Event notification
      • Configure Event Notification Alert
      • Image Push Failure Error Code and Handling Methods
    • Image Build
      • Build Based on Existing Image
    • Image Cleanup
      • Clean BOS Storage Space
      • Delete image version
      • Version Retention
    • Image Migration
      • Migrate External Image to Enterprise Edition Instance
    • Image security
      • Immutable image version
      • Security Scanning Container Image
    • Manage Namespace
    • OCI Artifact Management
      • Manage Helm Chart
      • Manage Image Registry
      • OCI Artifact Management Overview
  • Function Release Records
  • Personal Edition API Reference
    • Helm API
    • Image API
    • Image Migration APIs
    • Image Version and Image Version Scanning Interface
    • Namespace APIs
    • Overview
    • User APIs
  • Personal Edition Documentation Set
    • Account Permission Management
    • Cloud Container Engine (CCE) migration to CCR
    • Container Image Service Basic Operations
    • How to Perform Image Scanning
    • How to Upload Helm Chart
    • How to use the DockerHub image accelerator
  • Product Announcement
    • CCR Enterprise Edition Pricing Announcement
    • CCR Enterprise Edition Public Beta Announcement
    • CCR Personal Edition Announcement on Closing New Entry
    • CCR Personal Edition Announcement on Disabling Image Scanning Function
  • Product introduction
    • Core concepts
    • Enterprise Edition Different Specifications Differentiation Description
    • Key functions
    • Product advantages
    • Product Introduction
  • Product pricing
    • Billing overview
  • Quick Start
    • Enterprise Edition Quick Start
    • How to Build Docker Image
  • Service Level Agreement (SLA)
    • CCR Enterprise Edition Service Level Agreement
  • Document center
  • arrow
  • CCR
  • arrow
  • Enterprise Edition Operation Guide
  • arrow
  • Image Cleanup
  • arrow
  • Clean BOS Storage Space
Table of contents on this page
  • Note
  • Operation steps
  • Simulate cleanup execution
  • Execute cleanup immediately
  • Execution results

Clean BOS Storage Space

Updated at:2025-11-03

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

  1. Sign in to Cloud Container Registry Console.
  2. In the left-hand navigation bar, go to "Instance List," and then click on the desired instance from the Instance List page.
  3. Select Artifact Cleanup in the left navigation bar on the Instance Management page.
  4. On the artifact cleanup page, you can view the list of artifact cleanup tasks associated with the current instance.
  5. Click Simulate Cleanup Execution and carefully read the relevant prompts.
  6. 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

  1. Sign in to Cloud Container Registry Console.
  2. In the left-hand navigation bar, go to "Instance List," and then click on the desired instance from the Instance List page.
  3. Select Artifact Cleanup in the left navigation bar on the Instance Management page.
  4. On the artifact cleanup page, you can view the list of artifact cleanup tasks associated with the current instance.
  5. Click Execute Cleanup Immediately and carefully read the relevant prompts.
  6. 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.

Previous
Image Build
Next
Delete image version