Bash: Solve ‘Argument list too long’ with xargs

I recently got the error “Argument list too long” when trying to remove many files in a folder:

Simple solution:
If all the files do not contain whitespace or special chars, this will work:

Otherwise you you need a solution with special handling of filenames.