code: def macro_delete(self, args: argparse.Namespace) -> None:
          
          if args.all:
              self.macros.clear()
              self.poutput("All macros deleted")
          elif not args.name:
              self.do_help('macro delete')
          else:
              for cur_name in utils.remove_duplicates(args.name):
                  if cur_name in self.macros:
                      del self.macros[cur_name]
                      self.poutput("Macro '{}' deleted".format(cur_name))
                  else:
                      self.perror("Macro '{}' does not exist".format(cur_name), traceback_war=False)
docs: Delete macros