To clear the logs on linux we connect via SSH and execute the following commands:
Delete all files:
1 |
find /var/log -type f -delete |
Delete all .gz and rotated files:
1 2 |
find /var/log -type f -regex ".*\.gz$" find /var/log -type f -regex ".*\.[0-9]$" |