parameters: (scan_path)
docstring: Removes all folders named "__pycache__" from the given directory tree.
      :param scan_path: Directory to scan for __pycache__ removal.
      :return:
docstring_summary: Removes all folders named "__pycache__" from the given directory tree.
      :param scan_path: Directory to scan for __pycache__ removal.
      :return:
docstring_tokens: Removes all folders named __pycache__ from the given directory tree . : param scan_path : Directory to scan for __pycache__ removal . : return :
function: def remove_pycache_dirs(scan_path):
      """
      Removes all folders named "__pycache__" from the given directory tree.
      :param scan_path: Directory to scan for __pycache__ removal.
      :return:
      """
      for root, dirs, files in os.walk(scan_path, topdown=False):
          for name in dirs:
              if name == "__pycache__":
                  remove_directory(os.path.join(root, name))
function_tokens: def remove_pycache_dirs ( scan_path ) : for root , dirs , files in os . walk ( scan_path , topdown = False ) : for name in dirs : if name == "__pycache__" : remove_directory ( os . path . join ( root , name ) )