find:ai:7a071
delete all files with .jpg recursively
$ find ${directory} -type f -name '*.jpg' -delete
try on your machine
This command will find all files with the .jpg extension in the specified directory and delete them recursively.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.
Questions that are answered by this command:
- delete all files with .jpg recursively?