---
title: "Unlink User File From Project"
method: DELETE
path: "/user/projects/{project_id}/files/{file_id}"
tags: ["public"]
---

# Unlink User File From Project

`DELETE /user/projects/{project_id}/files/{file_id}`

Unlink an existing user file from a specific project for the current user.

Does not delete the underlying file; only removes the association.

## Path parameters

- `project_id` integer, required
- `file_id` string, uuid, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

## Changes

- **2026-01-06** `2d941ea53eb3` — 1 info
  - endpoint added
- **2025-08-21** `9321c45d93b5` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/onyx-dot-app/apis/onyx-api/changes/user/projects/:project_id/files/:file_id/delete.md)

---

[API](https://skmtc.dev/onyx-dot-app/apis/onyx-api.md) · [All operations](https://skmtc.dev/onyx-dot-app/apis/onyx-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/onyx-dot-app/onyx-api/revisions/2980a9073ffe/schema)
