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

Deleting the application


In this recipe, you will learn how to delete an OpenShift application.

Getting ready

To step through this recipe, you will need rhc installed on your machine. Also, you will use the application created in the Creating an OpenShift application using the rhc command-line client recipe.

How to do it…

To delete an application, open a command-line terminal and run the following command:

$ rhc delete-app --app myapp --confirm

How it works…

The rhc -delete command deletes the application and all its data on the OpenShift server. You cannot roll back this command, so use it with caution. Under the hood, the rhc -delete command makes an HTTP DELETE request to delete the application.

See also

  • The Creating an OpenShift application using the rhc command-line client recipe

  • The Viewing application details recipe