deleteAlgorithm method

Future<void> deleteAlgorithm({
  1. required String algorithmName,
})

Removes the specified algorithm from your account.

May throw ConflictException.

Parameter algorithmName : The name of the algorithm to delete.

Implementation

Future<void> deleteAlgorithm({
  required String algorithmName,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'SageMaker.DeleteAlgorithm'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'AlgorithmName': algorithmName,
    },
  );
}