---
title: "Delete a file or folder (recursive)"
method: DELETE
path: "/client/files/{nodeId}"
tags: ["Files"]
---

# Delete a file or folder (recursive)

`DELETE /client/files/{nodeId}`

## Request

- Base URL: `https://api.atako.ai`
- URL: `https://api.atako.ai/client/files/{nodeId}`
- Auth: HTTP bearer

Cascades the whole subtree and removes the Storage objects. Author or company admin only.

## Path parameters

- `nodeId` string, required

## Response `200`

- object
  - `success` boolean

## Other responses

- `401`: Missing, malformed, or invalid bearer token / API key, or revoked session (SESSION_REVOKED).
- `403`: Not the author, and not a company admin.
- `404`: Not found, or the caller is not authorized to access this resource.

---

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