Can I delete cups files which too large?

The disk manager warned me 0 mb disk space left at root directory. I glanced to root / directory cups takes almost 50GB filesize.

lsblk
    NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
    sda      8:0    0 465,8G  0 disk 
    ├─sda1   8:1    0   302M  0 part /boot/efi
    ├─sda2   8:2    0 195,3G  0 part /mnt/3c601e33-9c69-4917-ba31-1c973076ce49
    ├─sda3   8:3    0 163,9G  0 part /home
    ├─sda4   8:4    0  98,3G  0 part /
    └─sda5   8:5    0     8G  0 part [SWAP]
    sdb      8:16   1  28,7G  0 disk 
    └─sdb1   8:17   1  28,7G  0 part /run/media/axe/SanDisk
    sr0     11:0    1  1024M  0 rom 

and

sudo du /var/log
4	/var/log/private
4	/var/log/audit
64	/var/log/lightdm
4	/var/log/gssproxy
48780708	/var/log/cups
4	/var/log/samba/cores/smbd
4	/var/log/samba/cores/nmbd
12	/var/log/samba/cores
24	/var/log/samba
4	/var/log/journal/remote
925888	/var/log/journal/42da90abebf94afab0ea78dee3d9f95d
925900	/var/log/journal
4	/var/log/old
49707692	/var/log

Here file by file list

ls -l
total 48780704
-rw-r--r-- 1 root cups  1762173003 Oct  5 12:59 access_log
-rw-r--r-- 1 root cups       10462 Oct  4 00:17 access_log.1
-rw-r--r-- 1 root cups        9803 Nov 25 02:22 access_log.2
-rw-r--r-- 1 root cups        4048 Nov 18 00:04 access_log.3
-rw-r--r-- 1 root cups        4078 Nov 12 17:53 access_log.4
-rw-r--r-- 1 root cups 48182558879 Oct  5 13:14 error_log
-rw-r--r-- 1 root cups     1073068 Oct  4 00:17 error_log.1
-rw-r--r-- 1 root cups     3613210 Nov 25 03:00 error_log.2
-rw-r--r-- 1 root cups      383325 Nov 18 00:09 error_log.3
-rw-r--r-- 1 root cups      350323 Nov 12 17:53 error_log.4
-rw-r--r-- 1 root cups     1048631 Sep 23 18:41 error_log.O
-rw-r--r-- 1 root cups         503 Oct  5 11:20 page_log
-rw-r--r-- 1 root cups        1062 Sep 23 22:46 page_log.1
-rw-r--r-- 1 root cups        4231 Aug 12 11:08 page_log.2
-rw-r--r-- 1 root cups         409 Jul 28 22:16 page_log.3
-rw-r--r-- 1 root cups         993 Jul 25 03:47 page_log.4

This directory contains some files.
Can I delete from file manager? Or I must apply spesific chache cleaning transaction?

Tags: Why Cups too directory too large, How can I make space on the disk on Linux, Cups take up a lot of space, Can I delete cups files, Does deleting cups files damage the system?, How do I delete cups files, How do I shrink cups files, why the root (/) directory full on linux, cups error log file too large, cups error_log too large

You can delete all these files:

access_log
access_log.1
access_log.2
access_log.3
access_log.4
error_log
error_log.1
error_log.2
error_log.3
error_log.4
error_log.O

Have a look into this folder in future and study the log content, seems to be a bit too much data for an error log file IMHO.

I am deleting these files, I hope my system keep stable… :grimacing:

They are only log files, don’t worry. :wink:

But you should find out why they have grown that big…

Thank you for your immediate help.
Yeah, interesting I print a lot of doc for few years and added a few printer 500 times especially damn Canon which not support Linux properly. :slight_smile:

I can update full system and many programs anmore :cowboy_hat_face: :sunglasses:
By the way , I deletted and restarted system, It’s looks so good! :checkered_flag:

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.