Skip to Content
Docs

Delete a folder

DELETE
/api/folders/{folder_id}

Delete a folder. Its folders and items move to its parent (the top level and unfiled when it had none); a child folder whose name is taken there gets a " (n)" suffix; agents reading it live lose it. A team's folder needs the Editor role there. Answers {success, moved_items, moved_folders, renamed: [{id, from, to}]}.

Personal access token scope: agents:write or prompts:write or sources:write or tools:write.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Path Parameters

folder_id*string

Response Body

Success

Example Request
curl -X DELETE 'http://localhost:7091/api/folders/string'
Example Response200
Empty