deleteRole method
Deletes a security role. An error is returned if the role is still in use.
Implementation
Future<Map<String, dynamic>> deleteRole(String id,
{bool? waitForRefresh}) async {
final response = await kuzzle.query(KuzzleRequest(
controller: name,
action: 'deleteRole',
uid: id,
waitForRefresh: waitForRefresh,
));
return response.result as Map<String, dynamic>;
}