client.delete_model

Replaces the model artifact for a model.

For more information, see Uploading a Model Artifact.

Input ParameterTypeDefaultDescription
project_idstrNoneThe unique identifier for the project.
model_idstrNoneA unique identifier for the model.
delete_prodOptional [bool]FalseIf True, published events will also be deleted.
delete_predOptional [bool]TrueIf True, prediction data will also be deleted.

📘

Info

Note that by default, published events are not deleted. This means if you delete a model and recreate it with the same model ID, your old events will still be available. To delete the old events, ensure that delete_prod is set to True.

PROJECT_ID = 'example_project'
MODEL_ID = 'example_model'

client.delete_model(
    project_id=PROJECT_ID,
    model_id=MODEL_ID,
    delete_prod=True
)