If you’re ever trying to remove a load of files from a folder that exceeds the number that can be run against a command (this is actually a compiled in memory limit on command line parameters, if you’re really keen you can recompile and increase the limit), then try this command:
find . -name "whatever*" | xargs rm
Job done.

