code: def remove(self, name):
          
          member = self[name]
          serial = member.serial
          value = member.value
          bmask = member.bmask
  
          success = idaapi.del_enum_member(self._eid, value, serial, bmask)
          if not success:
              raise exceptions.CantDeleteEnumMember("Can't delete enum member {!r}.".format(name))
docs: Remove an enum member by name