An even faster way to delete lots of files in a directory
gist.github.com
gist.github.com
On my system, this multi-process approach can work 2-3x faster than any of the standard Unix tools (including GNU parallel with rm, which in my testing suffered from too much runtime overhead).