Skip to content

Instantly share code, notes, and snippets.

View furqanbaqai's full-sized avatar
🎯
Focusing

Muhammad Furqan furqanbaqai

🎯
Focusing
View GitHub Profile
@Kevinrob
Kevinrob / clean.md
Last active March 6, 2024 23:18
Clean up microk8s registry
registry=localhost:32000
repositories=$(curl ${registry}/v2/_catalog)
for repo in $(echo "${repositories}" | jq -r '.repositories[]'); do
  echo $repo
  tags=$(curl -sSL "http://${registry}/v2/${repo}/tags/list" | jq -r '.tags[]')
  for tag in $tags; do
    echo $tag
    curl -v -sSL -X DELETE "http://${registry}/v2/${repo}/manifests/$(
 curl -sSL -I \