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:
if(brokenvehs.contains(iContext.getNewVehicle().getId())) return false;
where brokenvehs is a set of vehicles which we have to remove.