How can i remove a account with no domain?

zenid

Well-Known Member
Aug 22, 2004
62
0
156
Hi,

I have listed a old account in list accounts in WHM but there is no domain on it, i can remove the account by terminate it, i get a error invalid domain.

How can i remove the accounts from list accounts in whm?
 

madaboutlinux

Well-Known Member
Jan 24, 2005
1,051
2
168
Earth
If WHM is not allowing you to remove the domain, remove it manually from the following files

/usr/local/apache/conf/httpd.conf
/etc/named.conf
/var/named/domainname.db
/etc/localdomains
/etc/remotedomains
/etc/trueuserdomains
/etc/userdomains
/var/cpanel/users/username (remove the users file)

Restart the required services once you remove the domain name entries from the above files.
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,545
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
I have listed a old account in list accounts in WHM but there is no domain on it, i can remove the account by terminate it, i get a error invalid domain.

How can i remove the accounts from list accounts in whm?
Please submit a ticket so that we can take a closer look at the issue; the link in my forums signature may be used to initiate a ticket submission.
 

zenid

Well-Known Member
Aug 22, 2004
62
0
156
If WHM is not allowing you to remove the domain, remove it manually from the following files

/usr/local/apache/conf/httpd.conf
/etc/named.conf
/var/named/domainname.db
/etc/localdomains
/etc/remotedomains
/etc/trueuserdomains
/etc/userdomains
/var/cpanel/users/username (remove the users file)

Restart the required services once you remove the domain name entries from the above files.
Thanks this was working!