Skip to content

Project deletion #4141

Open
Open
@0xmichalis

Description

Currently the only way to delete a project is via oc delete project <project_name>. By using delete, users can even delete the project they currently are in:

[vagrant@openshiftdev sample-app]$ oc project
Using project "test" from context named "test/localhost:8443/test" on server "https://localhost:8443".
[vagrant@openshiftdev sample-app]$ oc delete project test
project "test" deleted
[vagrant@openshiftdev sample-app]$ oc project
error: you do not have rights to view project "test".

This doesn't feel right. How about providing a -D flag on oc project that will take care of that and won't allow for a project deletion if the user is currently using it (similar to what git branch -D is doing) ?

cc: @fabianofranz @deads2k @derekwaynecarr

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions