Delete old model when changing a model