---
title: "Delete an asset"
method: DELETE
path: "/api/assets/{id}"
tags: ["assets"]
---

# Delete an asset

`DELETE /api/assets/{id}`

Removes an asset entry. Depending on the server configuration, the underlying content may also be deleted.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `delete_content` boolean

## Response `204`

Asset deleted

## Other responses

- `401` — Unauthorized
- `404` — Asset not found
- `409` — Asset cannot be deleted because it is referenced by another resource (e.g., workflow version)
- `500` — Internal server error

## Changes

- **2026-05-22** `09a5075587c8` — 4 info
  - added the non-success response with the status `401`
  - added the non-success response with the status `404`
  - added the non-success response with the status `409`
  - added the non-success response with the status `500`
- **2026-04-24** `a66055fa384e` — 7 info
  - api tag `assets` added
  - api tag `file` removed
  - added the new optional `query` request parameter `delete_content`
  - removed the non-success response with the status `401`
  - …3 more

[Change history](https://skmtc.dev/comfy-org/apis/comfyui-api/changes/api/assets/:id/delete.md)

---

[API](https://skmtc.dev/comfy-org/apis/comfyui-api.md) · [All operations](https://skmtc.dev/comfy-org/apis/comfyui-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/comfy-org/comfyui-api/revisions/c4db9e1283df/schema)
