---
title: "Delete File"
method: DELETE
path: "/api/v1/files/{file_id}"
tags: ["files"]
---

# Delete File

`DELETE /api/v1/files/{file_id}`

Delete an uploaded file.

Removes the file from both storage and the database.

## Path parameters

- `file_id` integer, required

## Cookies

- `wos-session` string
- `datalab_active_team` string

## Response `200`

Successful Response

- DeleteFileResponse — Response after deleting a file.
  - `success` boolean — Whether the deletion was successful
  - `message` string, required — Confirmation message

## Other responses

- `422` — Validation Error

---

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