code: 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
docs: Delete all files within a path which match the thumbnails pattern.
  
      By default, matching files from all sub-directories are also removed. To
      only remove from the path directory, set recursive=False.