def delete_all_thumbnails(path, recursive=True):
 total = 0
 for thumbs in all_thumbnails(path, recursive=recursive).values():
  total += _delete_using_thumbs_list(thumbs)
 return total

def delete_all_thumbnails ( path , recursive = True ) : total = 0 for thumbs in all_thumbnails ( path , recursive = recursive ) . values ( ) : total += _delete_using_thumbs_list ( thumbs ) return total
delete all files within a path which match the thumbnails pattern .