/root/.cpanel/datastore folder question

dzamanakos

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