Sendmail: delete all emails for a user from the command line cat /dev/null > /var/mail/MAILBOX_YOU_WANT_TO_CLEAR for example for user root you would use something like: cat /dev/null > /var/mail/root