Go to the folder, where you want to delete for instance all mp3 files in this folder and it’s subfolders and type this:
1 |
$ for i in $( find . -name "*.mp3" ); do rm -f $i; done |
If you want to delete files by mask only in current folder, type this:
1 |
$ rm -rf *.mp3 |