Manually removing a parked domain is indeed a tough job. This article should help to make your job a bit easier. I would strongly recommend you to keep a backup before you edit the files.
1 |
Grep the <i><b>/var/cpanel/users</b></i> folders for the domain that you are looking for and remove it from the user file in question |
(this will also tell you who owns the domain).
1 |
Remove the domain entry from <i><b>/etc/named.conf</b></i> and the cooresponding .db file from <i><b>/var/named</b></i> and restart your bind server. |
1 |
Remove the virtual host or ServerAlias (whichever is applicable) from the <i><b>/etc/httpd/conf/httpd.conf</b></i> file and restart Apache |
1 |
Remove files with that domain name as the filename from <i><b>/etc/valiases</b></i>, <i><b>/etc/vdomainaliases</b></i>, and <i><b>/etc/vfilters</b></i>. |
1 |
If the domain is in <i><b>/etc/localdomains</b></i> or <i><b>/etc/remotedomains</b></i> then remove it from those files as well. Same goes for <i><b>/etc/userdomains</b></i>. |
This should pretty much wipe out the domain and you can re-add it whatever account you wish if that is want you want to do or just leave it gone!