The /var/tmp and /var/spool directories contain temporary files that you don't need to store over long periods of time. You can also create your own directory to contain files that you know are temporary.
To remove unneeded directories or subdirectories, use the rm –r command. The following example shows how to empty a user-created temporary directory named mywork that also contains temporary subdirectories.
# cd mywork # ls filea.000 fileb.000 filec.001 tempdir/ drafts/ # rm -r * # ls #