Core
API v2.x
2

delete #

Deletes a collection.


Query Syntax #

HTTP #

URL: http://kuzzle:7512/<index>/<collection>
Method: DELETE

Other protocols #

{
  "index": "<index>",
  "collection": "<collection>",
  "controller": "collection",
  "action": "delete"
}

Arguments #

  • collection: collection name
  • index: index name

Response #

Returns a confirmation that the collection is deleted:

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

Possible errors #