2023-11-17 15:59:27 -05:00
|
|
|
---
|
|
|
|
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/extensibility/connectors/).
|
|
|
|
|
|
|
|
## Path and HTTP methods
|
|
|
|
|
|
|
|
```json
|
|
|
|
DELETE /_plugins/_ml/connectors/<connector_id>
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Example request
|
|
|
|
|
|
|
|
```json
|
|
|
|
DELETE /_plugins/_ml/connectors/KsAo1YsB0jLkkocY6j4U
|
|
|
|
```
|
2023-11-24 11:18:49 -05:00
|
|
|
{% 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
|
|
|
|
}
|
|
|
|
```
|