---
title: "Delete an attachment (uploader or OWNER/ADMIN)"
method: DELETE
path: "/api/workspaces/{workspaceId}/attachments/{attachmentId}"
tags: ["Attachments"]
---

# Delete an attachment (uploader or OWNER/ADMIN)

`DELETE /api/workspaces/{workspaceId}/attachments/{attachmentId}`

## Request

- Base URL: `https://hiveship.app/api`
- URL: `https://hiveship.app/api/api/workspaces/{workspaceId}/attachments/{attachmentId}`
- Auth: API key in cookie `hiveship_access`

## Path parameters

- `workspaceId` string, required
- `attachmentId` string, required

## Response `200`

Attachment deleted

## Other responses

- `403`: Not the uploader and not OWNER/ADMIN
- `404`: Attachment not found

---

[API](https://skmtc.dev/hiveship/apis/hiveship-api.md) · [All operations](https://skmtc.dev/hiveship/apis/hiveship-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hiveship/apis/hiveship-api/revisions/73d3e26544e4?raw)
