Created
June 30, 2022 10:35
-
-
Save MrHassanMurtaza/9b93447334cc4f470258cee2bafaff81 to your computer and use it in GitHub Desktop.
Remove PVC from Namespace
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -ex | |
for i in $(k get pvc | awk '{if(NR>1)print $1}'); | |
do | |
kubectl delete pvc $i | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment