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
| Parameter | Type | Description |
|---|---|---|
client | Client | - |
parameters | { id: string; } | - |
parameters.id | string | The ID of the attachment. |
options? | RequestOptions | - |
Returns
Promise<void>