In this example all the files with the extension gz inside the /var/log/ directory and in all its sub-folders will be deleted.
find /var/log/ -name "*.gz" -type f -delete
In this example all the files with the extension gz inside the /var/log/ directory and in all its sub-folders will be deleted.
find /var/log/ -name "*.gz" -type f -delete