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.


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

PropertyTypeDescription
idsList<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 #

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