Rails comes with a number of Rake tasks for cleaning up various temporary files that get generated when you run your application.
- Clear all files in tmp/
- Clear all files and directories in tmp/cache
- Clear all files in tmp/sessions
- Clear all files in tmp/sockets
- Rake can also clear the sessions table if you’re using one: