Skip to content

Command to delete a manifest from a remote registry #473

Closed

Description

@qweeah

The proposed commands is:

Usage:
  oras manifest delete REG/REPO<:TAG|@DIGEST> [flags]

Flags:
  --ca-file string               server certificate authority file for the remote registry
  -d, --debug                    debug mode
  -h, --help                     help for deleting a manifest
      --insecure                 allow connections to SSL registry without certs
  -p, --password string          registry password or identity token
      --password-stdin           read password or identity token from stdin
      --plain-http               allow insecure connections to registry without SSL check
  -u, --username string          registry username
  -v, --verbose                  verbose output
      --descriptor               show the descriptor of deleted blob
      --yes                      do not prompt for confirmation

Related to #459

Activity

  1. added this to the v0.15.0 milestone on Aug 3, 2022
  2. yuehaoliang commented on Aug 9, 2022

    @yuehaoliang
    Contributor

    Hi team, I'm interested in resolving both this issue and #472.

  3. yuehaoliang commented on Aug 25, 2022

    @yuehaoliang
    Contributor

    The UX of az acr manifest delete is:

    yuehaoliang@yuehaoliang:~$ az acr manifest delete yuehaoliang.azurecr.io/hello:v1
    Command group 'acr manifest' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
    Are you sure you want to delete the artifact 'sha256:f04e7500b73d0d0b970c04f1a53c79134f5ecffb8690cb454dca551354763412' and all manifests that refer to it? (y/n): y
    

    Refer to az-acr-manifest-delete.

  4. yuehaoliang commented on Aug 25, 2022

    @yuehaoliang
    Contributor

    Use case: use -h to see the usage of oras manifest delete:
    image
    Use Case: decide not to delete the manifest:
    image
    Use Case: decide to delete the manifest:
    image
    Use Case: user flag --yes or -y to confirm deleting the manifest:
    image
    Use Case: --descriptor will print the descriptor of the manifest:
    image
    Use Case: use digest to delete the manifest:
    image
    Use case: miss the tag or digest
    image
    Use case: the manifest does not exist:
    image

    According to the discussion about UX listed in #459, newly made some modification to the above PR. Here attached some simple use cases.

  5. yuehaoliang commented on Sep 2, 2022

    @yuehaoliang
    Contributor

    Updated some UX:
    image
    image
    image
    image
    image
    image
    image

  6. yuehaoliang commented on Sep 7, 2022

    @yuehaoliang
    Contributor

    Should oras manifest delete support --platform to delete the manifest of a specific platform if target is multi-platform capable?
    @qweeah @shizhMSFT

  7. shizhMSFT commented on Sep 7, 2022

    @shizhMSFT
    Contributor

    No, --plaform should not apply to any delete operation.

  8. Repository owner moved this from Todo to Done in ORAS-Planningon Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions