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.


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

Property Type Description
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 #

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