def invalidate_local_cache(cache_path):
 if os.path.exists(cache_path):
  print u"Invalidate local cache '{0}'.".format(repr(cache_path))
  shutil.rmtree(cache_path)

def invalidate_local_cache ( cache_path ) : if os . path . exists ( cache_path ) : print u"Invalidate local cache '{0}'." . format ( repr ( cache_path ) ) shutil . rmtree ( cache_path )
invalidates the local cache by removing the cache folders .