deleteKeyspace method

Future<void> deleteKeyspace({
  1. required String keyspaceName,
})

The DeleteKeyspace operation deletes a keyspace and all of its tables.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ServiceQuotaExceededException. May throw ValidationException.

Parameter keyspaceName : The name of the keyspace to be deleted.

Implementation

Future<void> deleteKeyspace({
  required String keyspaceName,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'KeyspacesService.DeleteKeyspace'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'keyspaceName': keyspaceName,
    },
  );
}