This will remove the object based purely on the pointer. Ideally, you would have comparison functions for your MyClass objects that actually check the objects to see if they are the same.
pVector.erase(std::remove(pVector.begin(), pVector.end(), obj), pVector.end());