deleteDataset method

Future<void> deleteDataset({
  1. required String datasetName,
})

Deletes the specified dataset.

You do not have to delete the content of the dataset before you perform this operation.

May throw InvalidRequestException. May throw ResourceNotFoundException. May throw InternalFailureException. May throw ServiceUnavailableException. May throw ThrottlingException.

Parameter datasetName : The name of the data set to delete.

Implementation

Future<void> deleteDataset({
  required String datasetName,
}) async {
  ArgumentError.checkNotNull(datasetName, 'datasetName');
  _s.validateStringLength(
    'datasetName',
    datasetName,
    1,
    128,
    isRequired: true,
  );
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/datasets/${Uri.encodeComponent(datasetName)}',
    exceptionFnMap: _exceptionFns,
  );
}