removeAttachment method
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.
Implementation
Future<void> removeAttachment(String id) async {
await _client.send(
'delete',
'rest/api/3/attachment/{id}',
pathParameters: {
'id': id,
},
);
}