remove_from_vector function

Remove from a vector