---
title: "Delete file"
method: DELETE
path: "/v2/file-systems/{file_system_key}/files"
tags: ["File Systems"]
---

# Delete file

`DELETE /v2/file-systems/{file_system_key}/files`

Deletes one file or folder. A folder that still has content is refused unless recursive is set.

## Path parameters

- `file_system_key` string, required

## Query parameters

- `path` string
- `recursive` boolean

## Response `200`

OK

- DeleteFileSystemFileResponse
  - `path` string, required
  - `type` 'file' | 'dir' | 'symlink' | 'other', required

## Other responses

- `204` — File successfully deleted.
- `409` — Conflict - The folder is not empty and recursive was not set.

## Changes

> 354 revisions in range; 140 not diffed.

- **2026-09-07** `bcd6172f8655` — 1 info
  - endpoint added
- **2026-09-07** `dcc0afb98a48` — 1 breaking
  - api path removed without deprecation
- **2026-09-06** `e1a2869bc12f` — 1 info
  - endpoint added
- **2026-09-06** `28c58af69b8c` — 1 breaking
  - api path removed without deprecation
- **2026-09-04** `bd22332086ec` — 1 info
  - endpoint added

[Full history](https://skmtc.dev/orq-ai/apis/orq-ai-api/changes/v2/file-systems/:file_system_key/files/delete.md)

---

[API](https://skmtc.dev/orq-ai/apis/orq-ai-api.md) · [All operations](https://skmtc.dev/orq-ai/apis/orq-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/orq-ai/apis/orq-ai-api/revisions/1397ab2cc658?raw)
