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})
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 #
final result = await kuzzle.security.mDeleteRoles([
'role1',
'role2',
'role3',
'role4',
'role5'
]);
/*
[ 'role1', 'role2', 'role3', 'role4', 'role5' ]
*/
Edit this page on Github(opens new window)