---
title: "Delete Folder"
method: DELETE
path: "/folders/{folder_id}"
tags: ["Folders"]
---

# Delete Folder

`DELETE /folders/{folder_id}`

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.

## Path parameters

- `folder_id` string, uuid, required

## Response `200`

Successful Response

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

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/agenta-ai/apis/agenta-api.md) · [All operations](https://skmtc.net/agenta-ai/apis/agenta-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agenta-ai/agenta-api/versions/ea6421d829f1/schema)
