Skip to content

Instantly share code, notes, and snippets.

@WadeBarnes
Created March 14, 2018 14:56
Show Gist options
  • Save WadeBarnes/1094cf37051a5227b98a08df78f87064 to your computer and use it in GitHub Desktop.
Save WadeBarnes/1094cf37051a5227b98a08df78f87064 to your computer and use it in GitHub Desktop.
Delete `New` or `Pending` builds in OpenShift
oc delete builds $(oc get builds | grep 'New\|Pending' | awk '{print $1;}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment