How to give exiting path to new vehicle

I have generated an initial solution. After the initial solution, we want to remove a specific vehicle from the list of a vehicle to provide services. I tried below hardroute constraint but it is not working:

        return false;

where brokenvehs is a set of vehicles which we have to remove.