Add deleteById method to model.