deleteMicrovmImageVersion method
Deletes a specific version of a MicroVM image. This operation is idempotent; deleting a version 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.
Parameter imageVersion :
The version of the MicroVM image to delete.
Implementation
Future<DeleteMicrovmImageVersionOutput> deleteMicrovmImageVersion({
required String imageIdentifier,
required String imageVersion,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/2025-09-09/microvm-images/${Uri.encodeComponent(imageIdentifier)}/versions/${Uri.encodeComponent(imageVersion)}',
exceptionFnMap: _exceptionFns,
);
return DeleteMicrovmImageVersionOutput.fromJson(response);
}