Open
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) ?