SDK
SDK Dart v2.x
2

deleteUser #

Deletes a user and all their associated credentials.


Copied to clipboard!
Future<Map<String, dynamic>> deleteUser(String id,
  {bool waitForRefresh})

Property Type Description
id
String
User kuid
waitForRefresh
bool

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

Return #

An object containing the kuid of the deleted user in its _id property.

Usage #

Copied to clipboard!
final result = await kuzzle.security.deleteUser('john.doe');
/*
{ _id: 'john.doe' }
  */