Skip to content

Function: removeAttachment() ​

ts
function removeAttachment(
   client, 
   parameters, 
   options?
): Promise<void>;

Defined in: src/cloud/api/issueAttachments.ts:156

Deletes an attachment from an issue.

This operation can be accessed anonymously.

Permissions required: For the project holding the issue containing the attachment:

  • Delete own attachments project permission to delete an attachment created by the calling user.
  • Delete all attachments project permission to delete an attachment created by any user.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ id: string; }-
parameters.idstringThe ID of the attachment.
options?RequestOptions-

Returns ​

Promise<void>