OpenShift Cookbook
上QQ阅读APP看书,第一时间看更新

Leaving a domain using rhc

You have now become a member of a domain that corresponds to the production environment. You have completed your work and now you want to leave the production domain.

Getting ready

To complete this recipe, you will need to have rhc installed on your machine. Please refer to the Installing the OpenShift rhc command-line client recipe in Chapter 1, Getting Started with OpenShift, for instructions.

How to do it…

To leave a domain, you should run the following command. All the users are allowed to leave the domain they are a member of:

$ rhc leave-domain --namespace prodosbook -l openshift.cookbook.test@gmail.com

How it works…

The rhc leave-domain command requires only one mandatory argument, which is --namespace, the namespace you want to leave. It then removes the user from the domain members. The rhc client makes a REST delete request to remove the member from the namespace.

See also

  • The Adding viewer members to a domain using rhc recipe
  • The Adding an admin member to a domain using rhc recipe
  • The Viewing all the members in a domain using rhc recipes