This tutorial will help you delete all root user emails from the shell in the Linux system. Here you will find two methods to remove user emails in a Linux system with a single command.

Method 1:

You can simply remove all emails of root or any other user on the Linux system using the following command.

Method 2:

You can also empty the mailbox file for any user. Generally the Linux system keeps the email under /var/mail/root or /var/spool/mail/root (for root account). For any other user on the Linux system, Simply change the root with the other username.