deleteCredentials

// Using callbacks (node.js or browser)
kuzzle.security.deleteCredentials('local', 'kuid', function (error, result) {

});

// Using promises (node.js)
kuzzle
  .security
  .deleteCredentialsPromise('local', 'kuid')
  .then(result => {

  });
kuzzle.security.deleteCredentials("local", "kuid", new ResponseListener<JSONObject>() {
  @Override
  public void onSuccess(JSONObject result) {

  }

  @Override
  public void onError(JSONObject error) {
    // Handle error
  }
}
<?php
use \Kuzzle\Kuzzle;

$kuzzle = new Kuzzle('localhost');
$result = $kuzzle->security->deleteCredentials('local', 'kuid');

Callback response

{
  "acknowledged": true
}

Delete credentials of the specifiedfor the current user.

deleteCredentials(strategy, kuid, [options], [callback])

ArgumentsTypeDescription
strategystringStrategy you want to delete credentials from
kuidstringUser's kuid
optionsJSON objectOptional parameters
callbackfunctionOptional Callback handling the response

Options

OptionTypeDescriptionDefault
queuablebooleanMark this request as (not) queuabletrue

Callback response

The response is a an object reflecting the query status.