class_docstr: Client for interacting with the MLflow Gateway API.
  
  :param gateway_uri: Optional URI of the gateway. If not provided, attempts to resolve from
      first the stored result of `set_gateway_uri()`, then the  environment variable
      `MLFLOW_GATEWAY_URI`.
class_docstr_tok: ["Client","for","interacting","with","the","MLflow","Gateway","API",".",":","param","gateway_uri",":","Optional","URI","of","the","gateway",".","If","not","provided",",","attempts","to","resolve","from","first","the","stored","result","of","`","set_gateway_uri","(",")","`",",","then","the","environment","variable","`","MLFLOW_GATEWAY_URI","`","."]
docstr: Delete an existing route in the Gateway.
  
  .. warning::
  
      This API is **only available** when running within Databricks. When running elsewhere,
      route deletion is handled by removing the corresponding entry from the route
      configuration YAML file that is specified during Gateway server start.
  
  Args:
      name: The name of the route to delete.
  
  Raises:
      mlflow.MlflowException: If the function is not running within Databricks.
  
  Example usage from within Databricks:
  
  .. code-block:: python
  
      from mlflow.gateway import MlflowGatewayClient
  
      gateway_client = MlflowGatewayClient("databricks")
      gateway_client.delete_route("my-existing-route")
docstr_tok: ["Delete","an","existing","route","in","the","Gateway",".","..","warning",":",":","This","API","is","*","*","only","available","*","*","when","running","within","Databricks",".","When","running","elsewhere",",","route","deletion","is","handled","by","removing","the","corresponding","entry","from","the","route","configuration","YAML","file","that","is","specified","during","Gateway","server","start",".","Args",":","name",":","The","name","of","the","route","to","delete",".","Raises",":","mlflow.MlflowException",":","If","the","function","is","not","running","within","Databricks",".","Example","usage","from","within","Databricks",":","..","code-block",":",":","python","from","mlflow.gateway","import","MlflowGatewayClient","gateway_client","=","MlflowGatewayClient","(","``","databricks","''",")","gateway_client.delete_route","(","``","my-existing-route","''",")"]
code: def delete_route(self, name: str) -> None:
      """
      Delete an existing route in the Gateway.
  
      .. warning::
  
          This API is **only available** when running within Databricks. When running elsewhere,
          route deletion is handled by removing the corresponding entry from the route
          configuration YAML file that is specified during Gateway server start.
  
      Args:
          name: The name of the route to delete.
  
      Raises:
          mlflow.MlflowException: If the function is not running within Databricks.
  
      Example usage from within Databricks:
  
      .. code-block:: python
  
          from mlflow.gateway import MlflowGatewayClient
  
          gateway_client = MlflowGatewayClient("databricks")
          gateway_client.delete_route("my-existing-route")
      """
      if not self._is_databricks_host():
          raise MlflowException(
              "The delete_route API is only available when running within Databricks. Route "
              "deletion is handled through uploading a modified configuration YAML file to the "
              "location specified when starting the Gateway server. To delete a route, remove "
              "the route entry from the configuration file.",
              error_code=BAD_REQUEST,
          )
      route = assemble_uri_path([MLFLOW_GATEWAY_CRUD_ROUTE_BASE, name])
      self._call_endpoint("DELETE", route)
  
imports: import json
  import logging
  from typing import Any, Dict, List, Optional
  import requests.exceptions
  from mlflow import MlflowException
  from mlflow.gateway.config import LimitsConfig, Route
  from mlflow.gateway.constants import MLFLOW_GATEWAY_CLIENT_QUERY_RETRY_CODES, MLFLOW_GATEWAY_CLIENT_QUERY_TIMEOUT_SECONDS, MLFLOW_GATEWAY_CRUD_ROUTE_BASE, MLFLOW_GATEWAY_LIMITS_BASE, MLFLOW_GATEWAY_ROUTE_BASE, MLFLOW_QUERY_SUFFIX
  from mlflow.gateway.utils import assemble_uri_path, gateway_deprecated, get_gateway_uri, resolve_route_url
  from mlflow.protos.databricks_pb2 import BAD_REQUEST
  from mlflow.store.entities.paged_list import PagedList
  from mlflow.tracking._tracking_service.utils import _get_default_host_creds
  from mlflow.utils.databricks_utils import get_databricks_host_creds
  from mlflow.utils.rest_utils import augmented_raise_for_status, http_request
  from mlflow.utils.uri import get_uri_scheme
label_desc: Use image node_id 9 for calling the MlflowGatewayClient obj's underlying member method code with example usage: obj.delete_route(name) without return types