Origin: Can I delete application directly ?

Created on 31 Jul 2017  路  4Comments  路  Source: openshift/origin

We use oc new-app to create a set of dc,bc,is,service,router ,

So If there any method delete this app also delete related resource like oc delete app or oc delete-app

kinquestion

Most helpful comment

oc new-app labels everything that it creates, by default with app=<generated name>. You can use -l to customise the label(s) added to create resources. To delete, do oc delete all -l app=<generated name> (or whatever labels you set).

All 4 comments

I don't know about such a command, so you have to use oc delete for each resource that have been created. If you're sure that in the current project no other resources except those that were created by oc new-app then you can use oc delete all --all.

CC @openshift/devex

oc new-app labels everything that it creates, by default with app=<generated name>. You can use -l to customise the label(s) added to create resources. To delete, do oc delete all -l app=<generated name> (or whatever labels you set).

Thanks

If you keep in mind kubectl how it works, you will understand the solution of @jim-minter

Was this page helpful?
0 / 5 - 0 ratings