SDK
SDK Dart v2.x
2

mDeleteProfiles #

Deletes multiple security profiles.

Throws a partial error (error code 206) if one or more profile deletions fail.


Future<List<dynamic>> mDeleteProfiles(List<String> ids, {bool waitForRefresh})

PropertyTypeDescription
idsList<String>Profile identifiers
waitForRefresh
bool

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

Return #

A List of the deleted profile ids.

Usage #

final result = await kuzzle.security.mDeleteProfiles([
  'profile1',
  'profile2',
  'profile3',
  'profile4',
  'profile5'
]);
  /*
  [ 'profile1', 'profile2', 'profile3', 'profile4', 'profile5' ]
    */