Find and delete matching files

find . -name "<pattern>" -exec rm {} +
Kategory
linux files
Description
Recursively finds all files matching a name pattern from the current directory and deletes them all in one command.
Kontributor
iarc13
Upvotes
▲ 0