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
Copy file name to clipboardExpand all lines: articles/container-registry/container-registry-delete.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ A [manifest digest](container-registry-concepts.md#manifest-digest) can be assoc
57
57
To delete by digest, first list the manifest digests for the repository containing the images you wish to delete. For example:
58
58
59
59
```azurecli
60
-
az acr manifest list-metadata --name myregistry --repository acr-helloworld
60
+
az acr manifest list-metadata --name acr-helloworld --registry myregistry
61
61
```
62
62
63
63
```output
@@ -106,8 +106,8 @@ To maintain the size of a repository or registry, you might need to periodically
106
106
The following Azure CLI command lists all manifest digests in a repository older than a specified timestamp, in ascending order. Replace `<acrName>` and `<repositoryName>` with values appropriate for your environment. The timestamp could be a full date-time expression or a date, as in this example.
107
107
108
108
```azurecli
109
-
az acr manifest list-metadata --name <acrName> --repository <repositoryName> \
After identifying stale manifest digests, you can run the following Bash script to delete manifest digests older than a specified timestamp. It requires the Azure CLI and **xargs**. By default, the script performs no deletion. Change the `ENABLE_DELETE` value to `true` to enable image deletion.
@@ -135,13 +135,13 @@ TIMESTAMP=2019-04-05
135
135
136
136
if [ "$ENABLE_DELETE" = true ]
137
137
then
138
-
az acr manifest list-metadata --name $REGISTRY --repository $REPOSITORY \
138
+
az acr manifest list-metadata --name $REPOSITORY --registry $REGISTRY \
0 commit comments