For those of you who enjoy the excitement of running dangerous commands: Replace “.log” with the file extension you wish to remove find . -type f -name "*.log" -exec rm -f {} \;