def delete_local_cache(tex_root):
 print u"Deleting local cache for '{0}'.".format(repr(tex_root))
 local_cache_paths = [_hidden_local_cache_path(), _local_cache_path(tex_root)]
 for cache_path in local_cache_paths:
  if os.path.exists(cache_path):
   print u"Delete local cache folder '{0}'".format(repr(cache_path))
   shutil.rmtree(cache_path)

def delete_local_cache ( tex_root ) : print u"Deleting local cache for '{0}'." . format ( repr ( tex_root ) ) local_cache_paths = [ _hidden_local_cache_path ( ) , _local_cache_path ( tex_root ) ] for cache_path in local_cache_paths : if os . path . exists ( cache_path ) : print u"Delete local cache folder '{0}'" . format ( repr ( cache_path ) ) shutil . rmtree ( cache_path )
removes the local cache folder and the local cache files .