Link Search Menu Expand Document Documentation Menu

You're viewing version 3.7 of the OpenSearch documentation. This version is no longer maintained. For the latest version, see the current documentation. For information about OpenSearch version maintenance, see Release Schedule and Maintenance Policy.

Delete Connector API

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

Endpoints

DELETE /_plugins/_ml/connectors/{connector_id}

Example request

DELETE /_plugins/_ml/connectors/KsAo1YsB0jLkkocY6j4U

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
}

Error responses

If you attempt to delete a connector that doesn’t exist, OpenSearch returns a 200 response with "result": "not_found" rather than an error:

{
  "_index": ".plugins-ml-connector",
  "_id": "nonexistent-connector-id",
  "_version": 1,
  "result": "not_found",
  "forced_refresh": true,
  "_shards": {
    "total": 1,
    "successful": 1,
    "failed": 0
  },
  "_seq_no": 1,
  "_primary_term": 1
}
350 characters left

Have a question? .

Want to contribute? or .