updates for deleting a model