parameters: (hass, hostname)
docstring: Try to remove token file.
docstring_summary: Try to remove token file.
docstring_tokens: Try to remove token file .
function: def remove_token_file(hass, hostname):
      """Try to remove token file."""
      token_file = hass.config.path(STORAGE_DIR, token_file_name(hostname))
  
      if os.path.isfile(token_file):
          try:
              os.remove(token_file)
          except:
              _LOGGER.error(
                  "Samsung TV - Error deleting token file: %s", token_file
              )
function_tokens: def remove_token_file ( hass , hostname ) : token_file = hass . config . path ( STORAGE_DIR , token_file_name ( hostname ) ) if os . path . isfile ( token_file ) : try : os . remove ( token_file ) except : _LOGGER . error ( "Samsung TV - Error deleting token file: %s" , token_file )