deleteAttachment method

Future<void> deleteAttachment(
  1. String attachmentId
)

Delete an attachment

Parameters:

  • String attachmentId (required): ID of attachment

Implementation

Future<void> deleteAttachment(String attachmentId,) async {
  final response = await deleteAttachmentWithHttpInfo(attachmentId,);
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}