code: def _delete(self, args: argparse.Namespace):
      gateway = self.api.client.gateways.get(
          self.api.project, args.name
      )
      print_gateways_table([gateway])
      if args.yes or confirm_ask("Do you want to delete the gateway?"):
          with console.status("Deleting gateway..."):
              self.api.client.gateways.delete(
                  self.api.project, [args.name]
              )
          console.print("Gateway deleted")
      else:
          console.print("Canceled")
          return
  
file_path: dstack/src/dstack/_internal/cli/commands/gateway.py
imports: import argparse
  from dstack._internal.cli.commands import APIBaseCommand
  from dstack._internal.cli.utils.common import confirm_ask, console
  from dstack._internal.cli.utils.gateway import print_gateways_table
  from dstack._internal.core.models.backends.base import BackendType
label_desc: Use image node_id 5 for calling the GatewayCommand obj's underlying member method code with example usage: obj._delete(args) without return types