Cleaning up after turning off analog and webalizer

spaceman

Well-Known Member
Mar 25, 2002
518
12
318
Hi All,

Via WHM I've just turned off analog and webalizer in favour of awstats.

I know want to free up all the space used by analog and webalizer. Is this a case of visiting each account one by one and deleting the following directories:

/tmp/analog
/tmp/webalizer
/tmp/webalizerftp

... or perhaps there is a script I can run that will perform the cleanup for me across all accounts?

(of course, in a perfect world, in WHM when I select to disable these packages it would be great to have the option to delete all related files at the same time!)

Thanks.
 

PWSowner

Well-Known Member
Nov 10, 2001
2,901
4
343
ON, Canada
Don't need a script to delete all of them. In shell just do:

rm -Rf /home/*/tmp/analog
rm -Rf /home/*/tmp/webalizer
rm -Rf /home/*/tmp/webalizerftp


I see no reason why they can't be deleted in full if they aren't being used anymore.
 

spaceman

Well-Known Member
Mar 25, 2002
518
12
318
Doh! Now why didn't I think of that? :)

I'm assuming of course that

a) it is indeed 100% 'safe' to remove these directories now that I've turned these packages off.
b) there are no other files or directories of significance that I should also be removing.

Thanks.