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.

easiest way to empty an email account?

Discussion in 'E-mail Discussions' started by schwim, Apr 4, 2009.

  1. schwim

    schwim Well-Known Member

    Joined:
    Aug 2, 2006
    Messages:
    198
    Likes Received:
    0
    Trophy Points:
    16
    Hi there everyone,

    As the title suggests, I need to empty a couple email accounts. Preferrably, I'd like to be able to keep last x number of days, but if need be will empty them completely.

    Any suggestions are welcome.

    thanks,
    json
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  3. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    or just run

    cat /dev/null >/home/username/path_to_mailbox
     
  4. schwim

    schwim Well-Known Member

    Joined:
    Aug 2, 2006
    Messages:
    198
    Likes Received:
    0
    Trophy Points:
    16
    Thanks very much to both of you for your help. I found that cmm was already installed on this server, so it was pretty much a piece of cake :)

    Thanks again for taking the time to help me out.
     
Loading...

Share This Page