cPanel & WHM Version 92 has been released, and brings a slew of great updates. Take a look at what is included, and then upgrade today!

Delete Domain Aliases In Bulk

Rob Barbour shared this idea 3 years ago
Open Discussion

As a systems administrator, I'd like to be able to delete domain aliases in bulk via CSV/textarea, so I can quickly remove multiple aliases in a short amount of time.

---------

I suggest adding both of these:

1. Textbox for up to 500-1000 domains to process

2. Upload a CSV

This would allow everyone to easily remove many domain aliases with one action.

Comments (2)

photo
1

While this interface doesn't exist inside cPanel, you could script something to handle this for you using the following API call:


https://documentation.cpanel.net/display/SDK/cPanel+API+2+Functions+-+AddonDomain%3A%3Adeladdondomain

photo
2

Would this be in WHM or in cPanel ?


If in cPanel, would it be enough to just have the ability to easily select all aliases and have a Apply to all selected : "delete" option ?

photo
1

I think it should be in cPanel to allow users to control it, but technically could be in both.


Having a "delete all" function would be nice, but there needs to be a selective option (textbox or csv). I wouldn't want to be required to delete them all and then re-add what needs to be there.

photo
1

What about something like check boxes with a "select all" button and the ability to deselect domains you don't want to delete before clicking on a delete selected domains button ? Or would this not meet your needs ?

photo
2

I think it would be fine for 10, 20, or even 50, but not for me because I'm dealing with thousands of aliases. I'm also thinking of it from a programmatic side too and a textbox or csv solution would be easiest IMO (otherwise there's pagination and other things involved).

photo
1

I wrote a script to add thousands of aliases and it took forever to add them. I now need to deal with some pruning on a large selective scale. Doing a textbox or csv solution is what I would do anyway.

photo