SDK
SDK Dart Null Safety v3.x
2

deleteRole #

Deletes a security role.


 Future<Map<String, dynamic>> deleteRole(String id,
  {bool? waitForRefresh})

PropertyTypeDescription
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' }
*/