If you want something to not exist anymore, remove it from the data structure that contains it.
For example, this code removes all elements, for which the
isDead member function returns true, from the container.
std::vector<Entity> entities;
...
auto newEnd = std::remove_if(entities.begin(), entities.end(), std::mem_fn(&Entity::isDead));
entities.erase(newEnd, entities.end());