Skip to content

Instantly share code, notes, and snippets.

@MrHassanMurtaza
Created June 30, 2022 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MrHassanMurtaza/9b93447334cc4f470258cee2bafaff81 to your computer and use it in GitHub Desktop.
Save MrHassanMurtaza/9b93447334cc4f470258cee2bafaff81 to your computer and use it in GitHub Desktop.
Remove PVC from Namespace
#!/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