Rails Tip #5: Clean Up Using Rake
Rails comes with a number of Rake tasks for cleaning up various temporary files that get generated when you run your application.
rake tmp:clearClear all files in tmp/rake tmp:cache:clearClear all files and directories in tmp/cacherake tmp:sessions:clearClear all files in tmp/sessionsrake tmp:sockets:clearClear all files in tmp/sockets
—Rake can also clear the sessions table if you’re using one:
rake db:sessions:clear