Sometimes, you will have to clean the generated files with rake tasks to get into the initial state of the build for some reason. Maybe you would like to delete intermediate files while building or removing produced files to make sure that the build is clean and generates new files with confidence. In this situation, the built-in mechanisms of Rake could help you, and this chapter is about these mechanisms.
The solution is based on a simple idea, so the chapter includes the following topics:
Setting up a project
The cleaning tasks