SDK
SDK Dart Null Safety v3.x
2

mDeleteRoles #

Deletes multiple security roles.

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


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

Property Type Description
ids List<String> Role identifiers
waitForRefresh
bool?

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

Return #

A List of the deleted roles ids.

Usage #

Copied to clipboard!
final result = await kuzzle.security.mDeleteRoles([
    'role1',
    'role2',
    'role3',
    'role4',
    'role5'
  ]);
/*
[ 'role1', 'role2', 'role3', 'role4', 'role5' ]
  */