I would use a slightly different approach to delete these specific files.
First, you will want to make a list of the paths to all files. It should look like this:
list = ['17-07-39_03-05-2022_Testing.txt',
'16-07-34_03-05-2022_Testing.png',
etc.]
Then, you want to search this list for paths that include the string 'testing' and put all these paths in a new list:
testing_list = []
for path in list:
if path.find('Testing') > 0:
testing_list.append(path)
You can now delete all files in the testing_list list. I would use one of the following methods:
* Be the first to Make Comment