code: def delete(self, name):
          
          if name not in self._parent:
              raise KeyError('model "{}" not present'.format(name))
          del self._parent[name]
          if self._current_model_group == name:
              self._current_model_group = None
docs: deletes model with given name