def remove(self, elem):

        # Unwrap templates...
        elem = elem.unwrap()

        # Check if element exists
        if elem.tag not in self._childmap or self._childmap[elem.tag] != elem:
            raise ValueError(_('element is not a child'))

        self._children.remove(elem)
        del self._childmap[elem.tag]
Remove a child element.
dataset/ETHPy150Open openstack/rack/rack/api/xmlutil.py/TemplateElement.remove