<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def rm_field(self, name):
 """ Remove a field from the datamat. Parameters: name : string Name of the field to be removed """

        if not name in self._fields:
            raise ValueError
        self._fields.remove(name)
        del self.__dict__[name]