---
title: "Delete a user data file"
method: DELETE
path: "/api/userdata/{file}"
tags: ["user"]
---

# Delete a user data file

`DELETE /api/userdata/{file}`

Delete a user data file from the database. The file parameter should be
the relative path within the user's data directory.

## Path parameters

- `file` string, required

## Response `204`

File deleted successfully (No Content).

## Other responses

- `401` — Unauthorized.
- `404` — File not found.
- `500` — Internal server error.

---

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