There is a limitation of rm command, where you can’t delete a large groups of files with *. For examples,
rm -rf something*
If there are large amount of files initiate with something, rm will fails and complains/bin/rm: Argument list too long.
The solution is to make use of find, xargs and rm.find . -name 'something*' -print0 | xargs -0 rm -rf