opensearch-docs-cn/_ml-commons-plugin/api/connector-apis/delete-connector.md

758 B

layout title parent grand_parent nav_order
default Delete connector Connector APIs ML Commons APIs 30

Delete a connector

Deletes a standalone connector. For more information, see Connectors.

Path and HTTP methods

DELETE /_plugins/_ml/connectors/<connector_id>

Example request

DELETE /_plugins/_ml/connectors/KsAo1YsB0jLkkocY6j4U

{% include copy-curl.html %}

Example response

{
  "_index" : ".plugins-ml-connector",
  "_id" : "KsAo1YsB0jLkkocY6j4U",
  "_version" : 1,
  "result" : "deleted",
  "_shards" : {
    "total" : 2,
    "successful" : 2,
    "failed" : 0
  },
  "_seq_no" : 27,
  "_primary_term" : 18
}