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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

/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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,782
    Likes Received:
    1,712
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

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

    Thank you.
     
Loading...

Share This Page