code: def delete_deployment(target, name, config, endpoint):
      """
      Delete the deployment with name given at `--name` from the specified target.
      """
      client = interface.get_deploy_client(target)
  
      sig = signature(client.delete_deployment)
      if "config" in sig.parameters:
          config_dict = _user_args_to_dict(config)
          if "endpoint" in sig.parameters:
              client.delete_deployment(
                  name, config=config_dict, endpoint=endpoint
              )
          else:
              client.delete_deployment(name, config=config_dict)
      else:
          if "endpoint" in sig.parameters:
              client.delete_deployment(name, endpoint=endpoint)
          else:
              client.delete_deployment(name)
  
      click.echo(f"Deployment {name} is deleted")
  
imports: import json
  import sys
  from inspect import signature
  import click
  from mlflow.deployments import interface
  from mlflow.environment_variables import MLFLOW_DEPLOYMENTS_CONFIG
  from mlflow.utils import cli_args
  from mlflow.utils.annotations import experimental
  from mlflow.utils.proto_json_utils import NumpyEncoder, _get_jsonable_obj
label_desc: Use image node_id 5 for calling a global function with example usage: delete_deployment(target, name, config, endpoint) without return types