User avatar
faramon
Posts: 123
Joined: Sat Jun 11, 2016 8:36 am
Location: Croatia

NGINX log gz files

Tue Sep 27, 2016 7:23 pm

Hi,

how to delete all gz backup nginx files from /var/log/nginx?
I try right mouse click and delete but these files are under owner www-data and group adm and it is not possible!
Is there other solution? I have access.log and error.log also but I do not want to delete those two files.

Faramon

Heater
Posts: 15949
Joined: Tue Jul 17, 2012 3:02 pm

Re: NGINX log gz files

Tue Sep 27, 2016 7:36 pm

Open a terminal window, then:

$ sudo rm /var/log/nginx*.gz

Why do you need to delete them? Perhaps I'm wrong but I thought the logging system cleaned them up itself after a while.
Memory in C++ is a leaky abstraction .

User avatar
faramon
Posts: 123
Joined: Sat Jun 11, 2016 8:36 am
Location: Croatia

Re: NGINX log gz files

Tue Sep 27, 2016 7:40 pm

Yes it does. There are 34 gz files and I do not need them anymore. I prefer to have just few files from this month.

Thanx,
Faramon

Return to “General discussion”