Find and delete a bunch of files:
find /var/log/ -name '*.gz' -exec rm {} +
Note: Concluding with ‘+’ rather than ‘\;’ should be faster by not running rm on every instance from find.
Confirm before delete:
find /var/log/ -name '*.gz' -exec rm -i {} +
Include directories:
find /var/log/ -name '*.gz' -exec rm -r {} +
Truncate instead:
find /var/log/ -name '*log' -type f -exec truncate -s 0 {} +
Delete empty directories:
find /path/to/dir -empty -type d -delete