def undefine(self):
        """Undefine the Method.

        Python equivalent of the CLIPS undefmethod command.

        The object becomes unusable after this method has been called.

        """
        if lib.EnvUndefmethod(self._env, self._gnc, self._idx) != 1:
            raise CLIPSError(self._env)

        self._env = None