deleteKxEnvironment method
Deletes the kdb environment. This action is irreversible. Deleting a kdb environment will remove all the associated data and any services running in it.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter environmentId :
A unique identifier for the kdb environment.
Parameter clientToken :
A token that ensures idempotency. This token expires in 10 minutes.
Implementation
Future<void> deleteKxEnvironment({
required String environmentId,
String? clientToken,
}) async {
final $query = <String, List<String>>{
if (clientToken != null) 'clientToken': [clientToken],
};
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/kx/environments/${Uri.encodeComponent(environmentId)}',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
}