Files
OpenSearch-Docs-Cn/_ml-commons-plugin/api/model-apis/delete-model.md
T
kolchfa-awsandMelissa Vagi 826e6771ed Refactor ML section - local and remote models (#5609)
* Refactor ML section - local and remote models

Signed-off-by: Fanit Kolchina <[email protected]>

* Added command to calculate checksum

Signed-off-by: Fanit Kolchina <[email protected]>

* Add ONNX format to register API

Signed-off-by: Fanit Kolchina <[email protected]>

* Add sparse encoding predict example

Signed-off-by: Fanit Kolchina <[email protected]>

* Add API section

Signed-off-by: Fanit Kolchina <[email protected]>

* Refactor the API section

Signed-off-by: Fanit Kolchina <[email protected]>

* Typo

Signed-off-by: Fanit Kolchina <[email protected]>

* Implemented Vale comments

Signed-off-by: Fanit Kolchina <[email protected]>

* Add get connector API

Signed-off-by: Fanit Kolchina <[email protected]>

* Reword heading

Signed-off-by: Fanit Kolchina <[email protected]>

* Addressed tech review comments

Signed-off-by: Fanit Kolchina <[email protected]>

* Apply suggestions from code review

Co-authored-by: Melissa Vagi <[email protected]>
Signed-off-by: kolchfa-aws <[email protected]>

---------

Signed-off-by: Fanit Kolchina <[email protected]>
Signed-off-by: kolchfa-aws <[email protected]>
Co-authored-by: Melissa Vagi <[email protected]>
2023-11-17 15:59:27 -05:00

47 lines
953 B
Markdown

---
layout: default
title: Delete model
parent: Model APIs
grand_parent: ML Commons API
nav_order: 50
---
# Delete a model
Deletes a model based on the `model_id`.
When you delete the last model version in a model group, that model group is automatically deleted from the index.
{: .important}
For information about user access for this API, see [Model access control considerations]({{site.url}}{{site.baseurl}}/ml-commons-plugin/api/model-apis/index/#model-access-control-considerations).
## Path and HTTP methods
```json
DELETE /_plugins/_ml/models/<model_id>
```
#### Example request
```json
DELETE /_plugins/_ml/models/MzcIJX8BA7mbufL6DOwl
```
{% include copy-curl.html %}
#### Example response
```json
{
"_index" : ".plugins-ml-model",
"_id" : "MzcIJX8BA7mbufL6DOwl",
"_version" : 2,
"result" : "deleted",
"_shards" : {
"total" : 2,
"successful" : 2,
"failed" : 0
},
"_seq_no" : 27,
"_primary_term" : 18
}
```