Bulk Operations

Overview

Bulk operations allow you to delete multiple image tags efficiently based on patterns, age, or retention policies.

Bulk Operations Interface
⚠️ WARNING: Expert-Only Activity

This is a dangerous operation that cannot be undone. Deleted tags cannot be recovered. The system has no knowledge of which images are in use or deployed.

Pattern-Based Deletion

Delete tags matching wildcard patterns:

# Delete all dev tags
Pattern: dev-*

# Delete all feature branch tags
Pattern: feature-*

# Delete all tags with specific suffix
Pattern: *-snapshot

Age-Based Cleanup

Remove tags older than specified days:

Retention Policies

Keep minimum number of recent tags:

Dry Run Mode

Preview deletions before executing:

  1. Enable dry run mode
  2. Configure deletion criteria
  3. Review list of tags to be deleted
  4. Execute if satisfied

Safety Features

Recommended Keep Minimum Values

Repository Type Keep Minimum Reason
Development 5-10 tags Recent builds for debugging
Staging 10-20 tags Testing and rollback capability
Production 20-50 tags Multiple rollback options
Base Images 50+ or avoid May be used by many other images

When NOT to Use Bulk Operations

Limitations (By Design)

No Usage History

Manual Garbage Collection Required

Example Workflows

Clean Up Development Tags

1. Navigate to repository
2. Click "Bulk Delete"
3. Pattern: dev-*
4. Enable dry run
5. Review tags to delete
6. Execute deletion

Implement Retention Policy

1. Navigate to repository
2. Click "Bulk Delete"
3. Select "Keep last N tags"
4. Set retention count: 10
5. Enable dry run
6. Review tags to delete
7. Execute deletion

Recovery Options

If you accidentally delete important tags:

  1. Check CI/CD pipeline: May have build artifacts
  2. Rebuild from source: If you have Dockerfile and code
  3. Restore from backup: If you backup your registry
  4. Pull from other environments: Dev/staging may have copies

Prevention is key: Always use dry run, keep higher minimum than needed, and document critical images before cleanup.