deleteMicrovmImage method
Deletes a MicroVM image. This operation is idempotent; deleting an image that has already been deleted succeeds without error.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter imageIdentifier :
The unique identifier (ARN or ID) of the MicroVM image to delete.
Implementation
Future<DeleteMicrovmImageOutput> deleteMicrovmImage({
required String imageIdentifier,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/2025-09-09/microvm-images/${Uri.encodeComponent(imageIdentifier)}',
exceptionFnMap: _exceptionFns,
);
return DeleteMicrovmImageOutput.fromJson(response);
}