Book Image

OpenShift Cookbook

By : Shekhar Gulati
Book Image

OpenShift Cookbook

By: Shekhar Gulati

Overview of this book

Table of Contents (19 chapters)
OpenShift Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Running OpenShift on a Virtual Machine
Index

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 [email protected]

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...