Use erase_if to remove things from containers.
vector_remove.