Core
API v2.x
2

delete #

Deletes a collection.


Query Syntax #

HTTP #

Copied to clipboard!
URL: http://kuzzle:7512/<index>/<collection>
Method: DELETE

Other protocols #

Copied to clipboard!
{
  "index": "<index>",
  "collection": "<collection>",
  "controller": "collection",
  "action": "delete"
}

Arguments #

  • collection: collection name
  • index: index name

Response #

Returns a confirmation that the collection is deleted:

Copied to clipboard!
{
  "status": 200,
  "error": null,
  "index": "<index>",
  "collection": "<collection>",
  "controller": "collection",
  "action": "delete",
  "requestId": "<unique request identifier>",
  "result": null
}

Possible errors #