deleteRole #
Deletes a security role.
Future<Map<String, dynamic>> deleteRole(String id,
{bool waitForRefresh})
Property | Type | Description |
---|---|---|
id | String | Role identifier |
waitForRefresh | bool ( null ) | If set to true , Kuzzle will not respond until the role deletion is indexed |
Return #
An object containing the kuid
of the deleted role in its _id
property.
Usage #
final result = await kuzzle.security.deleteRole('myRole');
/*
{ _id: 'myRole' }
*/
Edit this page on Github(opens new window)