- Remove compressed log files from /var/log
$ sudo find /var/log -type f -name "*.gz" -delete
- Truncate Log files
$ cd /var/log
$ sudo truncate -s 0 mail.log
$ sudo truncate -s 0 mail.log.1
$ sudo truncate -s 0 syslog
$ sudo truncate -s 0 syslog.1
- Truncate Nginx error/access logs
$ cd to_nginx_log_dir
$ sudo truncate -s 0 error.log access.log