SDK
SDK Dart Null Safety v3.x
2

deleteCredentials #

Deletes user credentials for the specified authentication strategy.


Future<Map<String, dynamic>> deleteCredentials(
      String strategy, String id, {bool? waitForRefresh})

PropertyTypeDescription
strategy
String
Strategy to use
id
String
User id
waitForRefresh
bool?

(null)
If set to true, Kuzzle will not respond until the credentials deletion is indexed

Returns #

An acknowledgment message.

Usage #

final result = await kuzzle.security.deleteCredentials('local', 'john.doe');
/*
{ acknowledged: true }
*/