deleteApiKey method

Future<void> deleteApiKey({
  1. required String apiKey,
})

Deletes the ApiKey resource.

May throw UnauthorizedException. May throw NotFoundException. May throw TooManyRequestsException.

Parameter apiKey : Required The identifier of the ApiKey resource to be deleted.

Implementation

Future<void> deleteApiKey({
  required String apiKey,
}) async {
  ArgumentError.checkNotNull(apiKey, 'apiKey');
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/apikeys/${Uri.encodeComponent(apiKey)}',
    exceptionFnMap: _exceptionFns,
  );
}