Skip to content

Instantly share code, notes, and snippets.

@joaocc
Created February 4, 2022 18:49
Show Gist options
  • Save joaocc/b9240a5db909ba02e168ecd69345fa19 to your computer and use it in GitHub Desktop.
Save joaocc/b9240a5db909ba02e168ecd69345fa19 to your computer and use it in GitHub Desktop.
Cleaning up AzureML images from Azure Container Registry (ACR)
ACR_NAME="${ACR_NAME:-myacr}"
az acr show-usage -n "${ACR_NAME}" -o json
DK_IMAGES=(
"azureml/azureml_00000000111111110000000011111111"
"azureml/azureml_11111111000000001111111100000000"
)
for i in "${DK_IMAGES[@]}"
do
az acr repository delete -y -n "${ACR_NAME}" --image $i || true
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment