To delete a model version set, all the associated models must be deleted or in a terminated state. You can set the
delete_model parameter to
True to delete all of the models in the model version set, and then delete the model version set. The
.delete() method on a
ModelVersionSet object initiates an asynchronous delete operation. You can check the
.status method on the
ModelVersionSet object to determine the status of the delete request.
The following example deletes a model version set and its associated models.
status property has the following values: