Dart 2.x

mDeleteUsers

Deletes multiple users.

Throws a partial error (error code 206) if one or more user deletions fail.


Copied to clipboard!
 Future<List<dynamic>> mDeleteUsers(List<String> ids,
      {bool waitForRefresh})

Property Type Description
ids
List
Array of user id
waitForRefresh
bool

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

Return

A List of the deleted user ids.

Usage

Copied to clipboard!
final result = await kuzzle.security.mDeleteUsers([
  'mDeleteUser1',
  'mDeleteUser2',
  'mDeleteUser3'
]);