Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Emptying the default mailbox

Discussion in 'E-mail Discussion' started by kaldesign, Nov 5, 2008.

  1. kaldesign

    kaldesign Member

    Joined:
    Apr 24, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    51
    Is there a way that I can quickly remove emails in a default mail box? As we have a couple of accounts with about 800mb of spam in them which need clearing out?

    cheers.
     
  2. nickp666

    nickp666 Well-Known Member

    Joined:
    Jan 28, 2005
    Messages:
    769
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    /dev/null
    from ssh,

    For Unread:
    Code:
    rm -fv /home/USERNAME/mail/new/*
    
    For Read:
    Code:
    rm -fv /home/USERNAME/mail/cur/*
    
    Obviously replacing 'USERNAME' with the user in question
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. kaldesign

    kaldesign Member

    Joined:
    Apr 24, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    51
    thank you

    thank you very much! :cool:
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice