Remove All Items From Large Directory

Seeing a problem like this?

# rm -rf *
-bash: /bin/rm: Argument list too long

Sometimes things go wrong and you end up w/ a directory that you need but it has more files in it than rm -rf * will allow you to delete. Here's a hack that will delete all files in the current folder and not traverse further into nested folders:

find . -type f -maxdepth 1 -exec rm -rf {} \;