code: def do_rm(self, line):
          
          args = self.line_to_args(line)
          filenames = args.filename
          # Process PATTERN
          sfn = filenames[0]
          if is_pattern(sfn):
              if len(filenames) > 1:
                  print_err("Usage: rm [-r] [-f] PATTERN")
                  return
              filenames = process_pattern(sfn)
              if filenames is None:
                  return
  
          for filename in filenames:
              filename = resolve_path(filename)
              if not rm(filename, recursive=args.recursive, force=args.force):
                  if not args.force:
                      print_err("Unable to remove '{}'".format(filename))
                  break
docs: rm [-f|--force] FILE...            Remove one or more files
         rm [-f|--force] PATTERN            Remove multiple files
         rm -r [-f|--force] [FILE|DIRECTORY]... Files and/or directories
         rm -r [-f|--force] PATTERN         Multiple files and/or directories
  
             Removes files or directories. To remove directories (and
             any contents) -r must be specified.