Given your code above, this will remove an element from the vector which equals to your pointer without deleting is so to speak. The pointer itself must be deleted in a separate step.
std::vector<Something*>::iterator it = std::find(vec.begin(), vec.end(), myptr);
if(it != vec.end())
vec.erase(it);