# Delete Folder

Source: https://agenta.ai/docs/reference/api/delete-folder

`DELETE /folders/{folder_id}`

Base URL: `https://us.cloud.agenta.ai/api` (US cloud), `https://eu.cloud.agenta.ai/api` (EU cloud) or `$AGENTA_HOST/api` (self-hosted). Authentication: `Authorization: ApiKey YOUR_API_KEY`.

Delete a folder and every descendant.

Removes the folder identified by `folder_id` together with every
folder beneath it, in a single transaction. Deletion is
unconditional; there is no archive or unarchive step. Resources
that were assigned to any of the removed folders continue to
exist and are no longer reachable through the deleted folder.

## Parameters

- `folder_id` (in path, string (uuid), required)

## Response schemas

### 200: Successful Response

- `count` (integer): `1` if a folder was deleted, `0` if no folder matched. Default: `0`.
- `id` (string (uuid), nullable): Id of the deleted folder. Omitted when nothing was deleted.

### 422: Validation Error

- `detail` (array of object)
  - `loc` (array of string | integer, required)
  - `msg` (string, required)
  - `type` (string, required)
  - `input` (any)
  - `ctx` (Context)
