code: def rm_subtitles(path):
      
      sub_exts = ['ass', 'srt', 'sub']
      count = 0
      for root, dirs, files in os.walk(path):
          for f in files:
              _, ext = os.path.splitext(f)
              ext = ext[1:]
              if ext in sub_exts:
                  p = os.path.join(root, f)
                  count += 1
                  print('Delete {}'.format(p))
                  os.remove(p)
      return count
docs: delete all subtitles in path recursively