Dart 2.x

deleteProfile

Deletes a security profile.


Copied to clipboard!
 Future<Map<String, dynamic>> deleteProfile(String id,
  {bool waitForRefresh})

Property Type Description
id
String
Profile identifier
waitForRefresh
bool

(null)
If set to true, Kuzzle will not respond until the profile deletion is indexed

Return

An object containing the kuid of the deleted profile in its _id property.

Usage

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