Hi,

On Thu, Mar 06, 2025 at 09:24:20PM -0500, Maureen Thomas wrote:
> There are 15 files in Var and the biggest one is the cache file. Is it safe
> to get rid of the contents of the whole file.  It takes up  57% of the
> drive.

Do not go deleting files in /var; you don't know enough about their
purpose to do that safely. There are tools you can use to safely delete
things.

It is safe to clear apt-get's cache with:

$ sudo apt-get clean

If you still need to find space after that, show us where it's all gone.

The command line tool "ncdu" can be helpful but if you don't have it
then a combination of "du" and "sort" will be useful, e.g:

$ sudo du -xh /var | sort -rh | head -25

(top 25 largest directories in /var with human-readable units.)

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting

Reply via email to