---
schema: rendered-html/v1
title: "Delete an Issue Attachment | Developer Portal for YouTrack and Hub Documentation"
source_url: https://www.jetbrains.com/help/youtrack/devportal/api-usecase-delete-issue-attachment.html
generated_at: 2026-06-11T15:01:23.612607+00:00
---

Feedback

Thanks for your feedback!

Was this page helpful?

YesNo

Developer Portal for YouTrack and Hub

- Developer Portal
- Apps
- MCP Tools
- YouTrack Workflows
- YouTrack Import Scripts
- YouTrack Form API
- YouTrack REST API
- Get Started with REST API
- REST API Reference
- REST API Use Cases
- Create an Issue
- Create an Issue and Set Custom Fields
- Get Issues List with All Values
- Get Value for an Issue Custom Field
- [Add Value to a Set](jetbrains__com__help__youtrack__devportal__api-usecase-add-value-to-bundle.md)
- Update Issue Custom Fields
- [Update a Text Field Value](jetbrains__com__help__youtrack__devportal__api-usecase-update-text-field-value.md)
- Clear Values of Custom Fields
- [Apply Commands to Issues](jetbrains__com__help__youtrack__devportal__api-usecase-commands.md)
- Tag or Untag Issues
- [Work with Issue Tags](jetbrains__com__help__youtrack__devportal__api-usecase-work-with-tags.md)
- [Attach Files to an Issue](jetbrains__com__help__youtrack__devportal__api-usecase-attach-files.md)
- [Delete an Issue Attachment](api-usecase-delete-issue-attachment.html)
- [Download an Issue Attachment](jetbrains__com__help__youtrack__devportal__api-usecase-download-issue-attachment.md)
- Link Issues
- [Get Issue History](jetbrains__com__help__youtrack__devportal__api-usecase-issue-history.md)
- [Get a Database Backup](jetbrains__com__help__youtrack__devportal__api-usecase-backup.md)
- Add User to Project Team
- REST API Troubleshooting
- Color Indices List
- Hub REST API

1. YouTrack REST API
2. REST API Use Cases
3. [Delete an Issue Attachment](#0)

# Delete an Issue Attachment﻿

Last modified: 07 May 2026

## Use Case﻿

Use the REST API to delete a specific attachment from an issue.

## Summary﻿

To delete an attachment from an issue:

1. Get the target issue ID.
2. Get the ID of the attachment that you want to delete.
3. Send a `DELETE` request to `/api/issues/{issueID}/attachments/{attachmentID}`.

## Step-by-Step﻿

1. First, get the issue attachments so you can identify the target attachment:

   ```
   curl -X GET \
   'https://example.youtrack.cloud/api/issues/99-500/attachments?fields=id,name' \
   -H 'Accept: application/json' \
   -H 'Authorization: Bearer perm:cm9vdA==.MjZGZWI=.WB02vjX0cM2ltLTJXUE3VOWHpJYYNx'
   ```
2. Suppose the response contains an attachment with ID `134-31`.
3. To delete this attachment, send the following request:

   ```
   curl -X DELETE \
   'https://example.youtrack.cloud/api/issues/99-500/attachments/134-31' \
   -H 'Accept: application/json' \
   -H 'Authorization: Bearer perm:cm9vdA==.MjZGZWI=.WB02vjX0cM2ltLTJXUE3VOWHpJYYNx' \
   -H 'Cache-Control: no-cache'
   ```

If the request succeeds, the attachment is removed from the issue.

- [Delete an Issue Attachment](/help/youtrack/devportal/api-usecase-delete-issue-attachment.html)
- [Use Case](/help/youtrack/devportal/api-usecase-delete-issue-attachment.html#use-case)
- [Summary](/help/youtrack/devportal/api-usecase-delete-issue-attachment.html#summary)
- [Step-by-Step](/help/youtrack/devportal/api-usecase-delete-issue-attachment.html#step-by-step)

[Attach Files to an Issue](jetbrains__com__help__youtrack__devportal__api-usecase-attach-files.md)[Download an Issue Attachment](jetbrains__com__help__youtrack__devportal__api-usecase-download-issue-attachment.md)

- Privacy & Security
- Terms Of Use
- Trademarks
- Legal

Copyright © 2000–2026 JetBrains s.r.o.
