Remaining files after deleting an account, may I manually delete them?

Kent Brockman

Well-Known Member
PartnerNOC
Jan 20, 2008
1,335
75
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
Hi, I just noticed that every time you delete an account, cPanel doesn't delete all the related files.

I see some files with the name of deleted accounts, i.e.:

Code:
# locate DELETED_ACCOUNT
/etc/vmail/gid.DELETED_ACCOUNT.com
/etc/vmail/passwd.DELETED_ACCOUNT.com
/etc/vmail/shadow.DELETED_ACCOUNT.com
/etc/vmail/uid.DELETED_ACCOUNT.com
/etc/vmail/vhost.DELETED_ACCOUNT.com
/usr/local/apache/conf/sites/DELETED_ACCOUNT.com.conf
/usr/local/apache/conf_pre_ea3/sites/DELETED_ACCOUNT.com.conf
/usr/local/apache/domlogs/DELETED_ACCOUNT.com
/usr/local/apache/domlogs/DELETED_ACCOUNT.com-bytes_log
/usr/local/apache/domlogs/DELETED_ACCOUNT.com-bytes_log.offset
/usr/local/apache/domlogs/ftp.DELETED_ACCOUNT.com-ftp_log.offset
/usr/local/apache/domlogs/ftp.DELETED_ACCOUNT.com-ftp_log.offsetftpbytes
/usr/local/frontpage/DELETED_ACCOUNT.com:443.cnf
/usr/local/frontpage/DELETED_ACCOUNT.com:80.cnf
/var/cpanel/bandwidth.cache/DELETED_ACCOUNT.com
/var/cpanel/bandwidth/DELETED_ACCOUNT
/var/cpanel/bandwidth/DELETED_ACCOUNT.com
/var/cpanel/bandwidth/DELETED_ACCOUNT.com-all.rrd
/var/cpanel/bandwidth/DELETED_ACCOUNT.com-http.rrd
/var/cpanel/bandwidth/DELETED_ACCOUNT-all.rrd
/var/cpanel/bandwidth/DELETED_ACCOUNT-ftp.rrd
/var/cpanel/bandwidth/DELETED_ACCOUNT-http.rrd
/var/cpanel/bandwidth/DELETED_ACCOUNT-imap.rrd
/var/cpanel/bandwidth/DELETED_ACCOUNT-pop3.rrd
/var/cpanel/bandwidth/DELETED_ACCOUNT-smtp.rrd
/var/cpanel/bwusagecache/DELETED_ACCOUNT
/var/cpanel/domain_keys/private/DELETED_ACCOUNT.com
/var/cpanel/domain_keys/public/DELETED_ACCOUNT.com
/var/cpanel/maxemailstracker/DELETED_ACCOUNT.com
/var/cpanel/notificationsdb/DELETED_ACCOUNT
/var/cpanel/sessions/[email protected]_ACCOUNT.comrTvKIbUWR74DJLYmrGk2v5GGIJElt3LXuHI9GzSzOeSQGPKdmgNJ9DwNAJbemWXs.cache
/var/cpanel/users.cache/DELETED_ACCOUNT
/var/spool/mail/DELETED_ACCOUNT
is it safe to delete all them?

should I keep some of them? (in such case, please tell me why)

why didn't cPanel delete it when the accounts were terminated?

thanks!
 

thewebhosting

Well-Known Member
May 9, 2008
1,199
1
68
From where are you terminating accounts? Which WHM/cPanel version are you using?

We didn't face such kind of issue.
 

Kent Brockman

Well-Known Member
PartnerNOC
Jan 20, 2008
1,335
75
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
Hi. I'm running cPanel 11.24.4-S35075 - WHM 11.24.2
The accounts are being terminated as always, from the "Terminate an Account" menu at WHM.

I don't know if the files I found are mantained by cPanel in order to provide statistical data. That's why I'm wondering if may I sometime need them for any reason.
 

thewebhosting

Well-Known Member
May 9, 2008
1,199
1
68
Hi. I'm running cPanel 11.24.4-S35075 - WHM 11.24.2
The accounts are being terminated as always, from the "Terminate an Account" menu at WHM.

I don't know if the files I found are mantained by cPanel in order to provide statistical data. That's why I'm wondering if may I sometime need them for any reason.
Ok thanks..I am not sure about this. Anybody else knows this?
 

Infopro

Well-Known Member
May 20, 2003
17,075
524
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
I think you'd be ok to kill these. When in doubt back it up first.
None of them are of any real size to be worried about.

Why cPanel does not remove them completely I can't answer though. You might want to check bugzilla for this to see if there is one logged.

This one is concerning removing a reseller account but the same sorts of files are mentioned in the bug.
Bug 1106 - Need to clean up reseller acct removal.
 
Last edited:

Kent Brockman

Well-Known Member
PartnerNOC
Jan 20, 2008
1,335
75
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
ok, I added an entry for that bug. That bug haven't been updated since 2007, so I think this issue is not as important as we can figure out. but in the other hand, they (cPanel staff) haven't confirm in any moment if those files may be deleted without any harm.

We have a lot of domains having being deleted and cleaning the mess is mandatory.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
cPanel Access Level
Root Administrator
The bandwidth files will be cleaned up automatically in cPanel 11.25

The domain logs should be cleaned up after the next log processing occurs.

I'll submit the other list items to see whether we can get those automatically cleaned during account termination.
 

crazyaboutlinux

Well-Known Member
Nov 3, 2007
939
1
66
The bandwidth files will be cleaned up automatically in cPanel 11.25

The domain logs should be cleaned up after the next log processing occurs.

I'll submit the other list items to see whether we can get those automatically cleaned during account termination.
when will be available cPanel 11.25
 

crazyaboutlinux

Well-Known Member
Nov 3, 2007
939
1
66
Hi, I just noticed that every time you delete an account, cPanel doesn't delete all the related files.

I see some files with the name of deleted accounts, i.e.:

Code:
# locate DELETED_ACCOUNT
/etc/vmail/gid.DELETED_ACCOUNT.com
/etc/vmail/passwd.DELETED_ACCOUNT.com
/etc/vmail/shadow.DELETED_ACCOUNT.com
/etc/vmail/uid.DELETED_ACCOUNT.com
/etc/vmail/vhost.DELETED_ACCOUNT.com
/usr/local/apache/conf/sites/DELETED_ACCOUNT.com.conf
/usr/local/apache/conf_pre_ea3/sites/DELETED_ACCOUNT.com.conf
/usr/local/apache/domlogs/DELETED_ACCOUNT.com
/usr/local/apache/domlogs/DELETED_ACCOUNT.com-bytes_log
/usr/local/apache/domlogs/DELETED_ACCOUNT.com-bytes_log.offset
/usr/local/apache/domlogs/ftp.DELETED_ACCOUNT.com-ftp_log.offset
/usr/local/apache/domlogs/ftp.DELETED_ACCOUNT.com-ftp_log.offsetftpbytes
/usr/local/frontpage/DELETED_ACCOUNT.com:443.cnf
/usr/local/frontpage/DELETED_ACCOUNT.com:80.cnf
/var/cpanel/bandwidth.cache/DELETED_ACCOUNT.com
/var/cpanel/bandwidth/DELETED_ACCOUNT
/var/cpanel/bandwidth/DELETED_ACCOUNT.com
/var/cpanel/bandwidth/DELETED_ACCOUNT.com-all.rrd
/var/cpanel/bandwidth/DELETED_ACCOUNT.com-http.rrd
/var/cpanel/bandwidth/DELETED_ACCOUNT-all.rrd
/var/cpanel/bandwidth/DELETED_ACCOUNT-ftp.rrd
/var/cpanel/bandwidth/DELETED_ACCOUNT-http.rrd
/var/cpanel/bandwidth/DELETED_ACCOUNT-imap.rrd
/var/cpanel/bandwidth/DELETED_ACCOUNT-pop3.rrd
/var/cpanel/bandwidth/DELETED_ACCOUNT-smtp.rrd
/var/cpanel/bwusagecache/DELETED_ACCOUNT
/var/cpanel/domain_keys/private/DELETED_ACCOUNT.com
/var/cpanel/domain_keys/public/DELETED_ACCOUNT.com
/var/cpanel/maxemailstracker/DELETED_ACCOUNT.com
/var/cpanel/notificationsdb/DELETED_ACCOUNT
/var/cpanel/sessions/[email protected]_ACCOUNT.comrTvKIbUWR74DJLYmrGk2v5GGIJElt3LXuHI9GzSzOeSQGPKdmgNJ9DwNAJbemWXs.cache
/var/cpanel/users.cache/DELETED_ACCOUNT
/var/spool/mail/DELETED_ACCOUNT
is it safe to delete all them?

should I keep some of them? (in such case, please tell me why)

why didn't cPanel delete it when the accounts were terminated?

thanks!
HI

There isn't such kind of issue & we didn't face yet

And first of all tell us where did you find this ??
 

Kent Brockman

Well-Known Member
PartnerNOC
Jan 20, 2008
1,335
75
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
The bandwidth files will be cleaned up automatically in cPanel 11.25

The domain logs should be cleaned up after the next log processing occurs.

I'll submit the other list items to see whether we can get those automatically cleaned during account termination.
Great. I'm anxious to see what improvements will bring 11.25.
BTW, until cPanel can be able to automatically delete these files, I'll wait for your confirmation about deleting the listed ones automatically.



HI

There isn't such kind of issue & we didn't face yet

And first of all tell us where did you find this ??
We are actually running cPanel 11.24.4-S35075 - WHM 11.24.2, but always have been deleting accounts, from the start, even when you create a testdrive account. We are using cPanel since WHM 11.2.0 cPanel 11.6.0-R15076, circa 2007, and I just found that all the accounts deleted since that point have left the listed files behind. That's why it is a mess. I don't know why others aren't experimenting the same issue. This box runs on CentOS 4.6; maybe this fact impacts by any way in this issue.