Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
101
rated 0 times [  101] [ 0]  / answers: 1 / hits: 79295  / 2 Years ago, wed, march 2, 2022, 2:01:09

As a result of a long-running cron job, I have over 1,000 messages in my user's mailbox. What's the easiest way to delete them?


More From » mail

 Answers
2

If you want to delete all the messages, you can simply truncate the mailbox file for a user with the following command:



> /var/mail/username


(the greater than sign is not a prompt: you are in effect redirecting the output of nothing to the file, which will truncate it).


[#44523] Thursday, March 3, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tusmuumu

Total Points: 195
Total Questions: 122
Total Answers: 104

Location: Oman
Member since Tue, Feb 7, 2023
1 Year ago
;