# Macos – Safely get rid of “You have new mail in /var/mail” on a Mac

emailmacossendmailterminalunix

I was messing around with sendmail in Rails a year ago and have had this message popping up in the terminal after every command ever since:

You have new mail in /var/mail/Lance

How do I properly get rid of that so the message goes away? I ever use any of that functionality and don't have mail on my computer. There's one file in /var/mail called lance, and it's huge. Can I just remove it?

The old school way is to open a terminal and use

mail


at the prompt, then

d


to delete one message or

d1-4


for for four messages.

Then

q


to quit.

If you don't want to delete them unread, just type Enter at the mail prompt and it'll show each message in turn.

Use

man mail


for all the details.

Of course, other more sophisticated mail clients may be available, but that will do it.