As part of a deployment script, I want to dump some cached stuff from my temp directory. I use a command like:
/tmp/our_cache is empty (fairly common when pushing many changes in quick succession to our testing server), this prints the following error message:
rm: cannot remove `/tmp/our_cache/*': No such file or directory
It's not a big deal, but it's a little ugly and I want to cut down the noise-to-signal ratio in the output from this script.
What's a concise way in unix to delete the contents of a directory without getting messages complaining that the directory is already empty?