SDK Java v2.x

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

deleteSpecifications #

Delete specifications linked to the collection object.

deleteSpecifications([options], [callback]) #

Arguments Type Description
options JSON object Optional parameters
callback function Optional callback

Options #

Option Type Description Default
queuable boolean Make this request queuable or not true
refresh string If set to wait_for, Kuzzle will wait for the persistence layer indexation to return (available with Elasticsearch 5.x and above) undefined

Return Value #

Returns the Collection object to allow chaining.

Usage #

Copied to clipboard!
// Deleting one document
  .collection("collection", "index")
  .deleteSpecifications(new ResponseListener<JSONObject>() {
    public void onSuccess(JSONObject result) {
    public void onError(JSONObject error) {
      // Handle error

Callback response:

Copied to clipboard!
  "acknowledged": true