Recursively delete all files with a given extension

Example: I want to delete all .xmp files recursively:

find . -type f -name '*.xmp' -delete

Example: I want to delete any file or directory which contains .tmp in their names recursively:

find . -name '.tmp' -delete

No Comments

No comments yet.

RSS feed for comments on this post.

Leave a comment

WordPress Themes