deleteDataset method

Future<DeleteDatasetResponse> deleteDataset({
  1. required String datasetId,
  2. String? clientToken,
})

Deletes a FinSpace Dataset.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw LimitExceededException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter datasetId : The unique identifier of the Dataset to be deleted.

Parameter clientToken : A token that ensures idempotency. This token expires in 10 minutes.

Implementation

Future<DeleteDatasetResponse> deleteDataset({
  required String datasetId,
  String? clientToken,
}) async {
  final $query = <String, List<String>>{
    if (clientToken != null) 'clientToken': [clientToken],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/datasetsv2/${Uri.encodeComponent(datasetId)}',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return DeleteDatasetResponse.fromJson(response);
}