Dart 2.x

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
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' ]
  */