Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Sep 2009
    Posts
    6

    Default Mass delete E-mail Accounts

    I'm trying to delete several email accounts at one time. Is this possible to do within cPanel? build=11.24.5 reseller panel

    Any help is greatly appreciated
    Thanks

  2. #2
    Member
    Join Date
    Aug 2009
    Location
    Houston, Tx
    Posts
    275

    Default Removing Email accounts

    Hello,


    Here is a script that you can use to remove a single account, this can be added to a script to delete multiple, however that would be something we would not support directly; but this should get you started I hope.

    su --login -s /bin/bash USERNAME -c "/usr/local/cpanel/cpanel-email 'delpop' 'test10' '0' 'domain.com'"

    This has to be run from that user. You will replace USERNAME with the user you are trying to delete and the domain.com with the domain.

    Thank you,
    Matthew Curry
    Last edited by cPanelMattCurry; 09-03-2009 at 10:12 AM.

  3. #3
    Member
    Join Date
    Sep 2009
    Posts
    6

    Default

    Could I execute this from a php file?

    Because I don't know much about anything to be honest with you. So as of right now I don't even know where i would run this from.

  4. #4
    Member
    Join Date
    Aug 2009
    Location
    Houston, Tx
    Posts
    275

    Default Delete Pop users

    Hello,


    That would be run from the command line interface or "CLI" and you may see it referred to, as far as scripting unfortunately its not something we can support directly; but if you only have a few you can do them one at a time with that command from the CLI.

    Thank you,
    Matthew Curry

  5. #5
    Member
    Join Date
    Sep 2009
    Posts
    6

    Default

    I have 2,700 to delete... so if you have any other suggestions please let me know. One at a time is scaring me

    It doesn't matter to me if i dump all emails. I can easily recreate them. So if there is a way to do that. It would be fine

  6. #6
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    ConfigServer Mail Manage might make it a little easier. You could list accounts and click to delete, but still, 2700 accounts is a lot of clicks.
    Fav cPlinks this week: Blog - cPanel & WHM 11.32 we love it! | cPanel University study for it! | Attracta is coming! we want this!

  7. #7
    Member
    Join Date
    Sep 2009
    Posts
    6

    Default

    Yes but it is so much better than 8100 clicks and waiting on screen load time to delete them one at a time from the cPanel interface.

    Thank you so much

  8. #8
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    Happy to help. No need to thank me though, thank Chirpy at that site I've linked you to.
    Fav cPlinks this week: Blog - cPanel & WHM 11.32 we love it! | cPanel University study for it! | Attracta is coming! we want this!

Similar Threads & Tags
Similar threads

  1. Delete not used mail accounts
    By maxihost3 in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 08-23-2011, 02:35 PM
  2. How to mass delete ftp user accounts
    By cpanel_geezer in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-23-2010, 11:33 AM
  3. Mass delete IPs?
    By Zion Ahead in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-06-2010, 08:20 AM
  4. Mass delete email accounts
    By RobertLawrence in forum Feature Requests for cPanel/WHM
    Replies: 0
    Last Post: 11-13-2009, 10:33 AM
  5. Mass Delete of Email
    By Danimator in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 06-09-2005, 04:45 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube