deleteUser #
Deletes a user and all their associated credentials.
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 #
final result = await kuzzle.security.deleteUser('john.doe');
/*
{ _id: 'john.doe' }
*/