code: def run(self):
      with self.config.edit(self.args.level) as conf:
          self._check_exists(conf)
          del conf["remote"][self.args.name]
  
      up_to_level = self.args.level or "repo"
      # Remove core.remote refs to this remote in any shadowing configs
      for level in reversed(self.config.LEVELS):
          with self.config.edit(level) as conf:
              if conf["core"].get("remote") == self.args.name:
                  del conf["core"]["remote"]
  
          if level == up_to_level:
              break
  
      return 0
  
imports: from dvc.cli import formatter
  from dvc.cli.utils import append_doc_link
  from dvc.commands.config import CmdConfig
  from dvc.ui import ui
  from dvc.utils import format_link
label_desc: Use image node_id 1 for calling the CmdRemoteRemove obj's underlying member method code with example usage: obj.run() and returns: int