Core
API v2.x
2

mDelete #

Deletes multiple indexes.


Query Syntax #

HTTP #

Copied to clipboard!
URL: http://kuzzle:7512/_mDelete
Method: DELETE
Body:
Copied to clipboard!
{
  indexes: ['index 1', 'index 2', 'index ...'];
}

Other protocols #

Copied to clipboard!
{
  "controller": "index",
  "action": "mDelete",
  "body": {
    "indexes": [
      "index 1",
      "index 2",
      "index ..."
    ]
  }
}

Body properties #

If no index is specified in the body, then all indexes that the current user is allowed to delete will be removed.

Optional: #

  • indexes: an array of index names to delete

Response #

Returns an array of indexes that were actually deleted.

Copied to clipboard!
{
  "status": 200,
  "error": null,
  "action": "mDelete",
  "controller": "index",
  "requestId": "<unique request identifier>",
  "result": {
    "deleted":[
      "index1",
      "index2"
    ]
  }
}

Possible errors #