recursively delete reference types
Use a new flag named -r, --recursive to delete referrer manifests recursively. See below example, by using the flag -r, --recursive, when deleting subject manifest, manifest A, B, C are deleted, and image index are updated.
graph
A -- refers --> Subject
B -- refers --> Subject
C -- refers --> Subject
Index --> A
Index --> B
Index --> C
Tag -.- Subject
Tag --> Index
Use a new flag --strict to disable updating image index.
@qweeah Does this feature also require the corresponding change in ORAS-go? If so, I will create an issue there to track both CLI and API support.
Yes, it is. Please help create a issue in oras-go.
Moving to future since oras manifest delete -r requires more discussions on the meaning of --recursive. For example, what if we oras manifest delete -r a manifest list? Will we delete any manifests referenced by a manifest list?
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.