Skip to content

Instantly share code, notes, and snippets.

@m-x-k
Created March 15, 2019 11:33
Show Gist options
  • Save m-x-k/a9a7f0c47b4c6f4d5bb7a4a5d0708804 to your computer and use it in GitHub Desktop.
Save m-x-k/a9a7f0c47b4c6f4d5bb7a4a5d0708804 to your computer and use it in GitHub Desktop.
Delete all openshift pods in a project space
#!/bin/bash
oc login
oc project $1
oc get services | awk '{print $1}' | grep -v NAME | xargs -I % oc delete all -l app=%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment