SDK
SDK Dart v1.x
2

# deleteRole

Deletes a security role.


Copied to clipboard!
 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

Copied to clipboard!
final result = await kuzzle.security.deleteRole('myRole');
/*
{ _id: 'myRole' }
*/