I've got a simple cron job that empties a directory full of cache files every day. rm -rf /home/username/mycache/* Sometimes when the directory has a ton of files in it, I get this error: When this happens, the files don't get deleted, so I have to manually go in and remove them myself. Is there anyway to get around this?