Skip to content

Add --unreferenced-only flag to acr purge #621

@escherstair

Description

@escherstair

I can use acr purge to delete some manifests.
I can add either --untagged or --untagged-only flag to limit the delete to manifests which don't have any tag.
Thsi si ok.

But sometimes I have manifests that have no tags, but they have a referrer artifact (in a OCI artifact graph).
And I would like avoiding to delete this manifests.

This is the reason why I ask for a --unreferenced-only flag (to be used alone or together with --untagged or --untagged-only) to delete only manifests which don't have any referrer artifacts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions