Skip to content

Instantly share code, notes, and snippets.

@SkamDart
Created October 19, 2018 17:36
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 SkamDart/f8ed7e585b2a183211d3e0be58b46ff2 to your computer and use it in GitHub Desktop.
Save SkamDart/f8ed7e585b2a183211d3e0be58b46ff2 to your computer and use it in GitHub Desktop.
one liner delete all cronjobs with name
kubectl get cronjob | grep 'jobprefix' | awk '{print $1}' | xargs kubectl delete cronjob
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment