I set up a cronjob a long time ago that now doesn't exist. Whenever I open up Terminal, it now says "You have mail". I have something like 100 messages that all say the same thing. How do I mass delete all of the messages?
I know this post is old, but I want to contribute with an answer.
to delete your mail messages do the following:
sudo rm /var/mail/[user]
And in order to the question, I suggest you do the following to each crontab you do not want to send an email notification (this way your mail will not have mails)
* * * * * /path/to/script.sh > /dev/null 2>&1
* * * * * command > /dev/null 2>&1