find . -name '*.log' -delete

Category: File Operations

find . -name '*.log' -delete

Find and delete all matching files

Finds files matching the name pattern and immediately deletes them. Combine with -name for targeted cleanup.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.