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?
Tell me more
×
Ask Ubuntu is a question and answer site for
Ubuntu users and developers. It's 100% free, no registration required.
|
If you want to delete all the messages, you can simply truncate the mailbox file for a user with the following command:
(the greater than sign is not a prompt: you are in effect redirecting the output of nothing to the file, which will truncate it). |
|||
|
|
|
Did you try |
|||