Optimisation for handling discarded deliveries