SDK
SDK Dart v2.x
2

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 kuid

| 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'
]);