mDelete #
Deletes multiple indexes.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/_mDelete
Method: DELETE
Body:
{
indexes: ['index 1', 'index 2', 'index ...'];
}
Other protocols #
{
"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.
{
"status": 200,
"error": null,
"action": "mDelete",
"controller": "index",
"requestId": "<unique request identifier>",
"result": {
"deleted":[
"index1",
"index2"
]
}
}
Possible errors #
Edit this page on Github (opens new window)