deleteAttachment method
Deletes an attachment. Supports all attachment types.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter attachmentId :
The ID of the attachment to delete.
Implementation
Future<DeleteAttachmentResponse> deleteAttachment({
required String attachmentId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/attachments/${Uri.encodeComponent(attachmentId)}',
exceptionFnMap: _exceptionFns,
);
return DeleteAttachmentResponse.fromJson(response);
}