42 lines
757 B
Markdown
42 lines
757 B
Markdown
---
|
|
layout: default
|
|
title: Delete connector
|
|
parent: Connector APIs
|
|
grand_parent: ML Commons API
|
|
nav_order: 30
|
|
---
|
|
|
|
# Delete a connector
|
|
|
|
Deletes a standalone connector. For more information, see [Connectors]({{site.url}}{{site.baseurl}}/ml-commons-plugin/remote-models/connectors/).
|
|
|
|
## Path and HTTP methods
|
|
|
|
```json
|
|
DELETE /_plugins/_ml/connectors/<connector_id>
|
|
```
|
|
|
|
#### Example request
|
|
|
|
```json
|
|
DELETE /_plugins/_ml/connectors/KsAo1YsB0jLkkocY6j4U
|
|
```
|
|
{% include copy-curl.html %}
|
|
|
|
#### Example response
|
|
|
|
```json
|
|
{
|
|
"_index" : ".plugins-ml-connector",
|
|
"_id" : "KsAo1YsB0jLkkocY6j4U",
|
|
"_version" : 1,
|
|
"result" : "deleted",
|
|
"_shards" : {
|
|
"total" : 2,
|
|
"successful" : 2,
|
|
"failed" : 0
|
|
},
|
|
"_seq_no" : 27,
|
|
"_primary_term" : 18
|
|
}
|
|
``` |