deleteMyCredentials

// Using callbacks (node.js or browser)
kuzzle.deleteMyCredentials('local', function (err, res) {
  console.log(res);     // {acknowledged: true}
});

// Using promises (node.js)
kuzzle
  .deleteMyCredentials('local')
  .then(res => {
    console.log(res);   // {acknowledged: true}
  });
kuzzle.deleteMyCredentials("local", new ResponseListener<JSONObject>() {
  @Override
  public void onSuccess(JSONObject result) {
    // result var contains the query status
  }

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

$kuzzle = new Kuzzle('localhost');
$result = $kuzzle->deleteMyCredentials('local');

// $result = [acknowledged => true]

Delete credentials of the specifiedfor the current user.

deleteMyCredentials(strategy, [options], [callback])

ArgumentsTypeDescription
strategystringStrategy you want to delete credentials from
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.