How to work around shell limitation of 'Argument list too long'?

for i in myLocalFiles*; do rm -f $i; done


This is a little simpler than jáquer suggested:

find /tmp -name "myLocalFiles*" -delete

find /tmp -name "myLocalFiles*" -exec rm -rf {} +