/root/.cpanel/datastore folder question

dzamanakos

Well-Known Member
Feb 15, 2014
56
3
58
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,
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,205
363
Hello,

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

Thank you.