SDK
SDK Dart Null Safety v3.x
2

deleteApiKey #

Available since 7.1.0
Available since Kuzzle 2.1.0

Deletes a user's API key.


Future<void> deleteApiKey(
      String userId, String id, {bool? waitForRefresh})

PropertyTypeDescription
userId
String
User kuid
id
String
API key unique ID
refresh
bool?

(false)
If set to wait_for, Kuzzle will not respond until the API key is indexed

Usage #

await kuzzle.security.deleteApiKey(
  'john.doe',
  'fQRa28BsidO6V_wmOcL');
print('API key successfully deleted');