---
title: "Soft-delete an uploaded file from the user's library"
method: DELETE
path: "/api/v1/upload/file/{uploaded_file_id}"
tags: ["Upload"]
---

# Soft-delete an uploaded file from the user's library

`DELETE /api/v1/upload/file/{uploaded_file_id}`

## Request

- Base URL: `https://backend.caspr.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://backend.caspr.ai/api/v1/upload/file/{uploaded_file_id}`
- Auth: OAuth 2
  - Password
  - Token URL: `token`

Marks the file as deleted so it no longer appears in the library picker. The file remains in S3 for existing chats.

## Path parameters

- `uploaded_file_id` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/caspr/apis/casper-api.md) - [All operations](https://skmtc.dev/caspr/apis/casper-api/llms.txt) - [OpenAPI document](https://skmtc.dev/caspr/apis/casper-api/revisions/f9765e3aa00c?raw)
