Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Tim-Schwalbe/63bc01043bc534e2af276ed703185534 to your computer and use it in GitHub Desktop.
Save Tim-Schwalbe/63bc01043bc534e2af276ed703185534 to your computer and use it in GitHub Desktop.
Kubectl: Delete released persistent volumes (PV)
kubectl get pv | grep Released | awk '$1 {print$1}' | while read vol; do kubectl delete pv/${vol}; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment