deleteProfile method
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>;
}