Skip to main content
DELETE
/
models
/
{model_id}
Delete a model
curl --request DELETE \
  --url https://app.gomangrove.com/api/v1/models/{model_id} \
  --header 'Authorization: <api-key>'
{
  "status": "error",
  "statusCode": 422,
  "errors": [
    {
      "message": "Cannot delete model with existing model runs"
    }
  ]
}

Authorizations

Authorization
string
header
required

Path Parameters

model_id
string
required

Model friendly ID (e.g., mdl_abc123def456)

Query Parameters

all_versions
boolean

When true, deletes all versions of the model. When false or omitted, deletes only the latest version. The model(s) must not have any model runs to be deleted.

Response

204 No Content