deleteDatastore method

Future<void> deleteDatastore({
  1. required String datastoreName,
})

Deletes the specified data store.

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

Parameter datastoreName : The name of the data store to delete.

Implementation

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