Raspberry Pi terminal command for force-emptying system logs. Useful for custom images.
sudo bash -c 'for i in $(find /var/log -type f); do cat /dev/null > $i; done'