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

# Delete Folder

`DELETE /workspaces/{workspace_id}/agent-folders/{folder_id}`

## Request

- Base URL: `https://platform.tracecat.com/api`
- URL: `https://platform.tracecat.com/api/workspaces/{workspace_id}/agent-folders/{folder_id}`
- Auth: one of:
  - API key in cookie `fastapiusersauth`
  - HTTP bearer

Delete an agent folder.

## Path parameters

- `folder_id` string, uuid, required
- `workspace_id` string, uuid, required

## Request body

- AgentFolderDelete
  - `recursive` boolean

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

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