rake assets:clean will now clean up any image files (*.png, *.gif, *.jpg, *.jpeg, *.ico) in addition to CSS and JS.
assets:clean task now cleans up images
Pull request updated as per #1355 (comment)
Just noticed a slight flaw: if there are subdirectories in public/assets/, you get an Operation not permitted. Either of the following fixes it:
Operation not permitted
rm file unless File.directory?(file)
rm file, :force => true
Yeah, we need :force to remove the dirs too.
rake assets:clean also removes directories
See #1776 (comment),