Private Container Registry Garbage Collection Settings
Each Private Container Registry offers a configurable Garbage Collection schedule to reclaim storage space from deleted images. Garbage Collection is turned off by default, giving you full control over when and how cleanup occurs. For more information, see the Garbage collection FAQ.
Understand the following key behaviors before configuring garbage collection:
How garbage collection works
Garbage collection reclaims storage by removing orphaned data that no images reference. Before you begin, familiarize yourself with the following key terms:
Layer: A unit of container image data. Example: an operating system base image, application code. One layer can be shared by multiple images.
Image manifest: A metadata record that lists all layers in an image. Deleting the manifest tells the Private Container Registry the image is no longer needed.
Tag: A human-readable label that points to a manifest. Example:
v1.0.0. One manifest can have multiple tags.Untagged image: An image without a tag, identified only by its digest (a unique hash). Example:
SHA256. Modern container workloads often reference images by digest instead of tag.
The cleanup flow
You delete one or more image manifests, either by tag or digest.
Garbage collection scans for manifests marked as deleted and checks which layers are still referenced by active images.
Layers with no active references are permanently deleted from the disk.
Storage usage decreases and billing is updated.
How should I clean up my images?
Use the decision matrix to arrive at a solution:
Scenario
Action
Time to storage recovery
Delete an image by tag. Example: app:old-version
Delete using the DCD or API; run garbage collection
Storage is reclaimed after garbage collection completes
Delete an untagged image (digest-based)
Delete using the API or regctl, then wait for garbage collection to run
Storage is reclaimed after garbage collection completes
Immediate visibility removal needed
Delete immediately using the DCD; garbage collection runs later
Immediate visibility; delayed garbage collection
Configure garbage collection
To turn on the garbage collection and set a recurring schedule from the DCD:
1. In the DCD, go to Menu > Containers > Container Registry.
2. Select a Private Container Registry to configure garbage collection. You can also select the OPTIONS menu
> Properties.

3. In the Properties tab, click > in the Garbage Collection row to expand the configuration panel.

4. Select a Day and Time (UTC) for garbage collection to run on a weekly basis. Choose a time when workload traffic is minimal. Read-only mode prevents pushes and pulls during cleanup.
5. Click Update Schedule to save your settings.

Delete images
To free storage space, follow the sequence:
Delete the image manifest
Mark images for deletion using one of these methods mentioned in the following tabs:
Navigate to your Private Container Registry.
Find the image and tag you want to delete.
Click the OPTIONS menu and select Delete.
Confirm the deletion.
The image is now hidden from the DCD, but the underlying data remains on disk.
To delete untagged images by digest or automate the process, use the API or the regctl command-line tool.
Run garbage collection
After deleting manifests, trigger garbage collection to reclaim storage:
1. Wait for your scheduled garbage collection time, or contact support to request an immediate run.
2. During execution, your Private Container Registry will be in read-only mode.
3. After completion, check your storage metrics in the DCD to confirm the reduction.
Last updated
Was this helpful?