Skip to content

Instantly share code, notes, and snippets.

@maksim-paskal
Last active April 15, 2022 08:49
Show Gist options
  • Save maksim-paskal/31283555689af15a9eb2f40426e73353 to your computer and use it in GitHub Desktop.
Save maksim-paskal/31283555689af15a9eb2f40426e73353 to your computer and use it in GitHub Desktop.
kubectl delete pods --field-selector=status.phase=Failed -A
kubectl delete pods --field-selector=status.phase=Evicted -A
kubectl delete pods --field-selector=status.phase=Succeeded -A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment