/bin/rm: Argument list too long

Went to clean up a cache directory I was using for development tonight and realized I had about 6000 images in it.  Running:

rm *

resulted in:

-bash: /bin/rm: Argument list too long

So I did some digging and found this little gem:

ls|xargs rm

Simple enough I should'a thought of it myself.

Link Love: Twitter Facebook Stumbleupon Reddit Digg | More