DELETE /v1/mlmodels/{id}
Delete an ML Model
Delete an ML model by ID or name, with soft/hard delete options
DELETE
DELETE /v1/mlmodels/{id}
Documentation Index
Fetch the complete documentation index at: https://openmetadata-codex-audit-docs-codebase-alignment.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Delete an ML Model
Delete an ML model by ID or fully qualified name. Supports soft delete (default), hard delete, and restore operations.Delete by ID
UUID of the ML model to delete.
Recursively delete child entities.
Permanently delete the ML model. If
false, the ML model is soft-deleted and can be restored.Delete by Name
UseDELETE /v1/mlmodels/name/{fqn} to delete by fully qualified name.
Fully qualified name of the ML model (e.g.,
mlflow_svc.customer_segmentation).Recursively delete child entities.
Permanently delete the ML model.
Restore a Soft-Deleted ML Model
UsePUT /v1/mlmodels/restore to restore a soft-deleted ML model.
UUID of the soft-deleted ML model to restore.
DELETE /v1/mlmodels/{id}
Returns
Soft delete returns the ML model object withdeleted: true. Hard delete returns no content (204). Restore returns the restored ML model object.
Error Handling
| Code | Error Type | Description |
|---|---|---|
401 | UNAUTHORIZED | Invalid or missing authentication token |
403 | FORBIDDEN | User lacks permission to delete this ML model |
404 | NOT_FOUND | ML model with given ID or FQN does not exist |