/bin/rm: Argument list too long

When deleting a lot of files with rm * the following error occurred:

For some reason rm is not able to delete too many files in a directory.

Solution

find . -name '*' | xargs rm