Origin: Simple way to delete everything in a project

Created on 7 May 2015  Â·  9Comments  Â·  Source: openshift/origin

As usual, I'm probably missing something, but if I do something along the lines of:

osc delete builds,buildconfigs,deploymentconfigs,imagerepositories,pods,replicationcontrollers,routes,services,templates --all

It doesn't remove the controllers before removing the pods, therefore typically the result is:

  • pods deleted
  • replication controllers start spinning up new pods
  • replication controllers deleted
  • new pods exist when IMO they shouldn't

Can it be ensured that if a user requests in one go to delete all RCs and pods, that the end result is that everything is gone?
Also out of interest is it already guaranteed that if two separate requests are made in order, first to delete RCs, second to delete pods, that the end result is no pods left?

componencli prioritP2

Most helpful comment

Careful, there's a dot shortage and comic sans is running low.

On May 7, 2015, at 11:10 PM, Jordan Liggitt [email protected] wrote:

...

—
Reply to this email directly or view it on GitHub.

All 9 comments

Try osc delete all --all

at that point, should you just delete the project?

Don't want to delete perms, members, quota, etc....

On May 7, 2015, at 9:07 PM, Jordan Liggitt [email protected] wrote:

at that point, should you just delete the project?

—
Reply to this email directly or view it on GitHub.

And osc delete all magically leaves those things?

Yup

On May 7, 2015, at 10:54 PM, Jordan Liggitt [email protected] wrote:

And osc delete all magically leaves those things?

—
Reply to this email directly or view it on GitHub.

You see, "all" probably doesn't mean what you think it means.

On May 7, 2015, at 10:54 PM, Jordan Liggitt [email protected] wrote:

And osc delete all magically leaves those things?

—
Reply to this email directly or view it on GitHub.

...

Careful, there's a dot shortage and comic sans is running low.

On May 7, 2015, at 11:10 PM, Jordan Liggitt [email protected] wrote:

...

—
Reply to this email directly or view it on GitHub.

I reckon that "osc all --all" plus fixing #2043 does everything I need. As far as I'm concerned this can be closed. Thanks!

Was this page helpful?
0 / 5 - 0 ratings