If you have problems to delete many files in a folder using rm * because you get the error that the argument list is to long you can use the combination of ls and xargs to get rid of the files.
Instead of
rm *
ls | xargs rm -f