How to delete files with a filename that contains specific string in Documents folder
Hi,
Is it possible to delete files that contains a particular string in their name in the Documents folder?
Example:
In the Documents folder, there are
item1.png
item2.png
item3.png
dog.png
cat.png
I would like to delete only the files that contain the "item" word. So in the example above, i want to delete form the Documents folder the item1.png, item2.png, and item3.png files.
Is this possible? Any inputs would be greatly appreciated.
|