Delete model API

You can use this API to delete a model that’s stored in MLz. All versions of this model and its deployments will be deleted.

HTTP method and URI path

DELETE /v3/published_models/{model_id}

Where:

model_id identifies the model ID.

Standard headers

Use the following standard HTTP header with this request:

Content-Type: application/json

Authorization: <Bearer token>

Required authorizations

The user ID associated with the token which is specified in the request header needs to be granted with one of the following roles:

  • sysadm
  • mladm
  • apiuser (only if the model was created by the user)

Expected response

On completion, the service returns an HTTP response, which includes a status code that indicates whether your request is completed. Status code 204 indicates a successful completion. A status code of 4nn or 5nn indicates an error.

The response from a successful request is the number of deleted models. For example, 1 indicates one model which has been deleted.