mypath = 'Photos'
for root, dirs, files in os.walk(mypath):
    for file in [x for x in files if re.match(pattern, x)]:
        os.remove(os.path.join(root, file))
Delete multiple files matching a pattern