---
title: "Remove a room file"
method: DELETE
path: "/rooms/{id}/files/{fileId}"
tags: ["Rooms"]
---

# Remove a room file

`DELETE /rooms/{id}/files/{fileId}`

## Request

- Base URL: `https://dataroom.corgi.com/api/v1`
- URL: `https://dataroom.corgi.com/api/v1/rooms/{id}/files/{fileId}`
- Auth: HTTP bearer

Soft-deletes the DataRoomFile only — the underlying library document is untouched and re-attaching restores it. Scope: `datarooms:write`.

## Path parameters

- `id` string, required
- `fileId` string, required

## Response `200`

Removed

## Other responses

- `404`: Not found
- `409`: Room is frozen

---

[API](https://skmtc.dev/corgi/apis/dataroom-api.md) - [All operations](https://skmtc.dev/corgi/apis/dataroom-api/llms.txt) - [OpenAPI document](https://skmtc.dev/corgi/apis/dataroom-api/revisions/73f75ef04a00?raw)
