deleteImportedModel method

Future<void> deleteImportedModel({
  1. required String modelIdentifier,
})

Deletes a custom model that you imported earlier. For more information, see Import a customized model in the Amazon Bedrock User Guide.

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

Parameter modelIdentifier : Name of the imported model to delete.

Implementation

Future<void> deleteImportedModel({
  required String modelIdentifier,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/imported-models/${Uri.encodeComponent(modelIdentifier)}',
    exceptionFnMap: _exceptionFns,
  );
}