You might confront issue deleting tons of files from a directory using command # rm *
Error Message: bash: /bin/rm: Argument list too long
Following commands are the saviours, though few more surely be there:
find . -type f -print -delete
find . -name "*" -print | xargs rm
Cheers!