Select a Category

How to Delete all mails in Ubuntu mail?

Problem

Cron job creates lots of mail in Ubuntu. It is too time consuming to delete manually.

Solution

Send nothing to the user account in mail. Example below clear all mails for root.

cat /dev/null > /var/spool/mail/root

Reference:

How to delete all local mail from a system account?