Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

/root/.cpanel/datastore folder question

Discussion in 'General Discussion' started by dzamanakos, Mar 14, 2018.

  1. dzamanakos

    dzamanakos Active Member

    Joined:
    Feb 15, 2014
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hi, i've noticed that the folder /root/.cpanel/datastore contains thousands of files, mostly of the form of
    Cpanel::Net::Whois::IP::Cached_XXX.XXX.XXX.XXX
    and some others.

    Is it safe to delete files older than XX days or weeks ?

    I've read that cpanel caches quota and some other info in this folder, but most of the files are in the form above (Cpanel::Net::Whois::IP::Cached_XXX.XXX.XXX.XXX).

    Is it ok to run from time to time something like :
    find /root/.cpanel/datastore/Cpanel::Net::Whois::IP::Cached* -type f -mtime +30
    -exec rm {} \;
    in order to delete only whois data?

    best regards,
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,506
    Likes Received:
    1,964
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Yes, you can safely remove those cache files, as they are regenerated as needed.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice