The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Emptying the default mailbox

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

  1. kaldesign

    kaldesign Member

    Joined:
    Apr 24, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    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:
    770
    Likes Received:
    2
    Trophy Points:
    18
    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
     
  3. kaldesign

    kaldesign Member

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

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

Share This Page