Recursively Find And Delete Files
by Kyle on · Posted in
This command will recursively search for a file and remove it.
For example, if you wanted to delete all index.html files, you would do this:
find ./ -name 'index.html' -exec rm '{}' ';' -print
If you wanted to remove all files ending in .html, you would do this:
find ./ -name '*.html' -exec rm '{}' ';' -print
![]()