Update the api when a delivery is deleted