The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'General Discussion' started by Kent Brockman, May 19, 2009.

  1. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,130
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    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/tek@DELETED_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!
     
  2. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,130
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    anybody knows?
     
  3. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    From where are you terminating accounts? Which WHM/cPanel version are you using?

    We didn't face such kind of issue.
     
  4. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,130
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
  5. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    Ok thanks..I am not sure about this. Anybody else knows this?
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,447
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    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.
     
    #6 Infopro, May 27, 2009
    Last edited: May 27, 2009
  7. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,130
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
  8. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    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.
     
  9. crazyaboutlinux

    crazyaboutlinux Well-Known Member

    Joined:
    Nov 3, 2007
    Messages:
    938
    Likes Received:
    0
    Trophy Points:
    16
    when will be available cPanel 11.25
     
  10. crazyaboutlinux

    crazyaboutlinux Well-Known Member

    Joined:
    Nov 3, 2007
    Messages:
    938
    Likes Received:
    0
    Trophy Points:
    16
    HI

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

    And first of all tell us where did you find this ??
     
  11. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,130
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.



    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.
     
Loading...

Share This Page