You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Command to delete a blob from a remote registry #474
How can users make sure they delete the right blob?
We could add a help doc to show the user how to get the digest for a blob
How about a confirmation dialog before deleting the blob, and a --force flag that user can delete the blob without confirmation.
Do you mean adding some help messages to tell users how to calculate the digest for a blob? (for example, using sha256sum command: sha256sum artifact2.txt), or add help doc for users to find the digest for a blob?
From my point of view, delete a blob could be a dangerous behavior, and users should know what they are doing, and know exactly what they are going to delete. So I'm not sure whether it is necessary to have a help doc.
For the second one, I think we could add this confirmation dialog in the future if there are some feedbacks from users. This is probably out of scope for the current issue.
We could add a help doc to show the user how to get the digest for a blob
I think we can prompt users that oras discover has this capability.
How about a confirmation dialog before deleting the blob, and a --force flag that user can delete the blob without confirmation.
I think it is not necessary to add confirmation prompt in this first-time implementation when users explictly delete a blob with specifying a digest.
According to the suggestion of Confirm before doing anything dangerous in CLIG, we can wait for users feedback to determine whether this prompt is needed in the next release.
Activity
lizMSFT commentedon Aug 9, 2022
please assign this to me
lizMSFT commentedon Aug 23, 2022
Current UX:
oras blob delete localhost:5000/0817hello@sha256:73720a3a5a2809700408e72ede153c7985889b1796a0b5edb30188e89edced5ccc @shizhMSFT @yizha1 @FeynmanZhou
yizha1 commentedon Aug 24, 2022
How can users make sure they delete the right blob?
--forceflag that user can delete the blob without confirmation.lizMSFT commentedon Aug 24, 2022
Do you mean adding some help messages to tell users how to calculate the digest for a blob? (for example, using
sha256sumcommand:sha256sum artifact2.txt), or add help doc for users to find the digest for a blob?From my point of view, delete a blob could be a dangerous behavior, and users should know what they are doing, and know exactly what they are going to delete. So I'm not sure whether it is necessary to have a help doc.
For the second one, I think we could add this confirmation dialog in the future if there are some feedbacks from users. This is probably out of scope for the current issue.
FeynmanZhou commentedon Aug 24, 2022
I think we can prompt users that
oras discoverhas this capability.I think it is not necessary to add confirmation prompt in this first-time implementation when users explictly delete a blob with specifying a digest.
According to the suggestion of Confirm before doing anything dangerous in CLIG, we can wait for users feedback to determine whether this prompt is needed in the next release.
sajayantony commentedon Aug 24, 2022
Experience of
oras blob delete localhost:5000/0817hello@sha256:73720a3a5a2809700408e72ede153c7985889b1796a0b5edb30188e89edced5csounds good 👍
SteveLasker commentedon Sep 9, 2022
Are we trying to delete a blob, or an artifact?
qweeah commentedon Sep 9, 2022
@SteveLasker This command is designed for deleting only a blob.
Deleting an artifact can be done via
oras manifest delete.