SDK
SDK Dart v2.x
2

mDeleteUsers #

Deletes multiple users.

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


 Future<List<dynamic>> mDeleteUsers(List<String> ids,
      {bool waitForRefresh})

PropertyTypeDescription
idsList<String>Array of user kuid
waitForRefreshbool
(null)
If set to true, Kuzzle will not respond until the users deletion is indexed

Return #

A List of the deleted user ids.

Usage #

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