Delete files with a specific string
Show older comments
In my directory I have 1000's of files, however some files are not needed and they all have the string "Yes_" in their file names, is there an easy way to delete all files that contain this phrase in their name?
2 Comments
Stephen23
on 17 Jan 2022
"is there an easy way to delete all files that contain this phrase in their name?"
delete *Yes_*.*
Ahmed Abdulla
on 17 Jan 2022
Accepted Answer
More Answers (0)
Categories
Find more on File Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!