delete app with oc Openshift CLI



C:\Users\jkriker\Desktop>oc get all
NAME TYPE FROM LATEST
bc/ruby-ex Source Git 2

NAME TYPE FROM STATUS STARTED DURATION
builds/ruby-ex-1 Source Git@855ab2d Complete About an hour ago 1m46s
builds/ruby-ex-2 Source Git@855ab2d Complete 31 minutes ago 1m16s

NAME DOCKER REPO TAGS UPDATED
is/ruby-22-centos7 172.30.254.23:5000/jlk-from-oc-cli/ruby-22-centos7 latest About an hour ago
is/ruby-ex 172.30.254.23:5000/jlk-from-oc-cli/ruby-ex latest 30 minutes ago

NAME REVISION DESIRED CURRENT TRIGGERED BY
dc/ruby-ex 2 1 1 config,image(ruby-ex:latest)

NAME DESIRED CURRENT READY AGE
rc/ruby-ex-1 0 0 0 1h
rc/ruby-ex-2 1 1 1 30m

NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD
routes/ruby-ex ruby-ex-jlk-from-oc-cli.7e14.starter-us-west-2.openshiftapps.com ruby-ex 8080-tcp None

NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
svc/ruby-ex 172.30.79.255 <none> 8080/TCP 1h

NAME READY STATUS RESTARTS AGE
po/ruby-ex-1-build 0/1 Completed 0 1h
po/ruby-ex-2-build 0/1 Completed 0 31m
po/ruby-ex-2-d87l8 1/1 Running 0 29m


oc delete pods --all
oc delete service --all
oc delete rc --all
oc delete dc --all
oc delete route --all
oc delete is --all
oc delete builds --all
oc delete bc --all
oc delete project jlk-from-oc-cli



C:\Users\jkriker\Desktop>oc delete pods --all
pod "ruby-ex-1-build" deleted
pod "ruby-ex-2-build" deleted
pod "ruby-ex-2-d87l8" deleted

C:\Users\jkriker\Desktop>oc delete service --all
service "ruby-ex" deleted

C:\Users\jkriker\Desktop>oc delete rc --all
replicationcontroller "ruby-ex-1" deleted
replicationcontroller "ruby-ex-2" deleted

C:\Users\jkriker\Desktop>oc delete dc --all
deploymentconfig "ruby-ex" deleted

C:\Users\jkriker\Desktop>oc delete route --all
route "ruby-ex" deleted

C:\Users\jkriker\Desktop>oc delete is --all
imagestream "ruby-22-centos7" deleted
imagestream "ruby-ex" deleted

C:\Users\jkriker\Desktop>oc delete builds --all
build "ruby-ex-1" deleted
build "ruby-ex-2" deleted

C:\Users\jkriker\Desktop>oc delete bc --all
buildconfig "ruby-ex" deleted


C:\Users\jkriker\Desktop>oc projects
You have one project on this server: "jlk-from-oc-cli".

Using project "jlk-from-oc-cli" on server "https://api.starter-us-west-2.openshift.com:443".


C:\Users\jkriker\Desktop>oc delete project jlk-from-oc-cli
project "jlk-from-oc-cli" deleted