def purge(self, db: 'EntityDB') -> None:
    ' Remove invalid group entities. '
    self._data = self._filter_invalid_entities(db)
Remove invalid group entities.
def purge(self, db: 'EntityDB') -> None:
    '  '
    self._data = self._filter_invalid_entities(db)