oras icon indicating copy to clipboard operation
oras copied to clipboard

recursively delete reference types

Open qweeah opened this issue 3 years ago • 4 comments

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 avatar Oct 19 '22 09:10 qweeah

@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.

FeynmanZhou avatar Nov 22 '22 03:11 FeynmanZhou

Yes, it is. Please help create a issue in oras-go.

qweeah avatar Nov 22 '22 03:11 qweeah

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?

shizhMSFT avatar Feb 24 '23 08:02 shizhMSFT

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.

github-actions[bot] avatar Jul 24 '23 01:07 github-actions[bot]