homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

Delete subdomains script
Need to delete lots

10+ Year Member

Msg#: 3942 posted 2:32 am on Jun 27, 2005 (gmt 0)


I have a large number of subdomains I created manually through CPanel. I'd like to delete most of them, but doing so using CPanel will very slow and tedious.

I've come up empty for examples on scripts to do this for me.

I'm in a shared hosting environment, but have shell access. I don't think I have access to the .conf file.

Does anyone have a script/example that correctlty deletes subdomains?




WebmasterWorld Senior Member jdmorgan us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 3942 posted 9:39 pm on Jul 5, 2005 (gmt 0)

One of the purposes of cPanel is to give you indirect, controlled access to httpd.conf. For this reason, I doubt you'll find a script to do this. I would recommend asking your host about this problem. You might end up backing up all the subdomain folders you want to keep, and then deleting everything and restoring the backup -- that might be faster. But ask your host first.


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved