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
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
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.
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.
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
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
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!
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![]()
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!