deleteUser method

Future<Map<String, dynamic>> deleteUser(
  1. String id, {
  2. bool? waitForRefresh,
})

Deletes a user and all their associate credentials.

Implementation

Future<Map<String, dynamic>> deleteUser(String id,
    {bool? waitForRefresh}) async {
  final response = await kuzzle.query(KuzzleRequest(
    controller: name,
    action: 'deleteUser',
    uid: id,
    waitForRefresh: waitForRefresh,
  ));

  return response.result as Map<String, dynamic>;
}