As you start using OpenShift for application development, the different components, such as Git and cartridge log directories, which constitute an application, will start consuming disk space. In the OpenShift Online free tier, applications are allocated only 1 GB of disk space so that it becomes critical to use the disk space effectively to avoid disk quota errors. In this recipe, you will learn how to clean up your application periodically to avoid disk quota errors.
To step through this recipe, you will need rhc installed on your machine. Also, we will use the OpenShift application created in the Creating an OpenShift application using the rhc command-line client recipe.
To clean up the application, open a command-line terminal and run the following command:
$ rhc tidy-app --app myapp