code: def vrf_attr_remove(arg, opts, shell_opts):
      
  
      if arg is None:
          print("ERROR: Please specify the RT of the VRF to view.", file=sys.stderr)
          sys.exit(1)
  
      # interpret as default VRF (ie, RT = None)
      if arg.lower() in ('-', 'none'):
          arg = None
  
      try:
          v = VRF.search({
              'val1': 'rt',
              'operator': 'equals',
              'val2': arg }
              )['result'][0]
      except (KeyError, IndexError):
          print("VRF with [RT: %s] not found." % str(arg), file=sys.stderr)
          sys.exit(1)
  
      for key in opts.get('extra-attribute', []):
          if key not in v.avps:
              print("Unable to remove extra-attribute: '%s' does not exist." % key, file=sys.stderr)
              sys.exit(1)
  
          del v.avps[key]
  
      try:
          v.save()
      except NipapError as exc:
          print("Could not save VRF changes: %s" % str(exc), file=sys.stderr)
          sys.exit(1)
  
      print("%s saved." % vrf_format(v))
docs: Remove attributes from a prefix