I have a public/cache folder which has files and folders. How can I completely empty that folder using a rake task?
public/cache
You can run arbitrary commands using backticks like so:
`rm -fr public/cache/*`
This may be more platform-dependent than what you want, but it opens up a lot of possibilities.