---
title: "Delete User File"
method: DELETE
path: "/user/projects/file/{file_id}"
tags: ["public"]
---

# Delete User File

`DELETE /user/projects/file/{file_id}`

Delete a user file belonging to the current user.

This will also remove any project associations for the file.

## Path parameters

- `file_id` string, uuid, required

## Response `200`

Successful Response

- UserFileDeleteResult
  - `has_associations` boolean, required
  - `project_names` string[]
  - `assistant_names` string[]

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/onyx-dot-app/apis/agents-api.md) · [All operations](https://skmtc.net/onyx-dot-app/apis/agents-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/onyx-dot-app/agents-api/versions/ea131344b29e/schema)
