deleteProfile method

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

Deletes a security profile. An error is returned if the profile is still in use.

Implementation

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

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