---
title: "Delete attachment from expense"
method: DELETE
path: "/expenses-api/expenses/{id}/attachments/{attachmentId}"
tags: ["Expenses (only available for accounting add-on users)"]
---

# Delete attachment from expense

`DELETE /expenses-api/expenses/{id}/attachments/{attachmentId}`

Deletes a single attachment from an existing expense by its attachment ID.

Returns the updated expense after the attachment is removed.

## Path parameters

- `id` string, required
- `attachmentId` string, required

## Response `200`

Attachment successfully deleted from expense

- object
  - `data` object, required — Expense details
    - `attachments` object[] — Array of expense attachments
      - `url` string, required
      - `urlThumbnail` string
      - `publicId` string
      - `originalExtension` string, required
      - `originalFilename` string, required
      - `bytes` number
      - `id` number
    - `id` string, required
    - `customerAccountId` string, required
    - `currentVersionId` number
    - `createdBy` string
    - `type` string, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
    - `vendorId` string
    - `currency` string, required
    - `listingId` string
    - `ownerId` string
    - `taskId` string
    - `reservationId` string
    - `expenseRuleId` string
    - `originType` string, required
    - `name` string, required
    - `categoryId` string, required
    - `description` string
    - `expenseRuleShare` object[]
    - `taxCategoryCode` string
    - `taxName` string
    - `taxDescription` string
    - `taxPayeeTypes` string[]
    - `externalRefId` string
    - `currentVersion` object
      - `amount` number, required
      - `expenseDate` string, date-time, required
      - `status` string, required
      - `taxAmount` number

## Other responses

- `401` — Authentication required - invalid or missing token
- `403` — You do not have sufficient permissions to access this resource
- `404` — Expense or attachment not found
- `500` — Unhandled exception. Something went wrong on server

---

[API](https://skmtc.net/guesty/apis/guesty-open-api.md) · [All operations](https://skmtc.net/guesty/apis/guesty-open-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/guesty/guesty-open-api/versions/7c62644070f2/schema)
