code: def delete_runs(self, **opts):
      if not self._deleted_runs_dir and not opts.get("permanent"):
          raise remotelib.OperationNotSupported(
              f"remote '{self.name}' does not support non permanent deletes\n"
              "Use the '--permanent' with this command and try again."
          )
      args = click_util.Args(
          archive=self._runs_dir, remote=None, **opts
      )
      self._sync_runs_meta()
      if args.permanent:
          preview = cmd_impl_support.format_warn(
              "WARNING: You are about to permanently delete "
              f"the following runs on {self.name}:"
          )
          confirm = "Permanently delete these runs?"
      else:
          preview = f"You are about to delete the following runs on {self.name}:"
          confirm = "Delete these runs?"
      no_runs_help = "Nothing to delete."
  
      def delete_f(selected):
          self._delete_runs(selected, args.permanent)
          self._sync_runs_meta(force=True)
  
      try:
          runs_impl.runs_op(
              args,
              None,
              preview,
              confirm,
              no_runs_help,
              delete_f,
              confirm_default=not args.permanent,
          )
      except SystemExit as e:
          self._system_exit_for_remote(e, ["runs rm", "runs delete"])
  
imports: import hashlib
  import logging
  import os
  import re
  from guild import click_util
  from guild import cmd_impl_support
  from guild import remote
  from guild import util
  from guild import var
  from guild.commands import runs_impl
label_desc: Use image node_id 5 for calling the MetaSyncRemote obj's underlying member method code with example usage: obj.delete_runs() without return types