parameters: ()
docstring: Clear old files from storage.
docstring_summary: Clear old files from storage.
docstring_tokens: Clear old files from storage .
function: def _clear_storage():
      """Clear old files from storage."""
      hacs = get_hacs()
      storagefiles = ["hacs"]
      for s_f in storagefiles:
          path = f"{hacs.core.config_path}/.storage/{s_f}"
          if os.path.isfile(path):
              hacs.log.info(f"Cleaning up old storage file {path}")
              os.remove(path)
function_tokens: def _clear_storage ( ) : hacs = get_hacs ( ) storagefiles = [ "hacs" ] for s_f in storagefiles : path = f"{hacs.core.config_path}/.storage/{s_f}" if os . path . isfile ( path ) : hacs . log . info ( f"Cleaning up old storage file {path}" ) os . remove ( path )