Hello,
I have a folder:
Testfolder
Inside are:
1.mat1.txt1.wav
SubTestfolder
Inside SubTestfolder are:
2.mat2.txt2.wav
I do
Del_path = fullfile(TestFolderPath,SubTestFoldername);delete(Del_path,'*.mat')
I was waiting that 2.mat should be deleted, but it will be 1.mat deleted, not 2.mat. Why? How can I delete files/all files in subfolder?
Thank you!
Best Answer