How to clean Postfix mailbox


I am using Postfix with my Hylafax "email to fax" and "fax to email" feature.  I found that my /var/spool/mail/root mailbox has a lot of content, how can I erase them.  I believed this is a mailbox to receive some kind of notification whenever I sent fax or receive fax.  The mailbox has 51199748 bytes, I want to clean it but how?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rm /var/spool/mail/root
> /var/spool/mail/root
should do it...  if you are sure you do not need them.
But I would backup the file before this just in case (always backup before deleting/purging) - then delete the backup if you want :)

The file will get recreated automatically when needed next time if you delete it and the second command will simply empty it...

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
PS: You might read for some warnings as well - but if you know what you are using the mail for (as it looks like), you can purge when there is no mail that is incoming so you should be fine.
KANEWONGAuthor Commented:
if I use following command, does it permanently delete the file or I need to purge it, like empty the recycle bin in windows.

rm root
Deletes permanently - no safety net on Unix.

That's why I say: First backup, then delete. Just in case. If you make it wrong - you have the backup.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.