v84

latestOpenAPI 3.1.0raw.githubusercontent.com2026-07-0985248447.1 KB
Knowledge bases

Delete Folder

Delete a folder. With recursive=false, non-empty folders return 409 and no contents are deleted.

delete/v1/knowledge-bases/{knowledge_base_id}/folders

Path parameters

knowledge_base_idstring uuid required

Unique knowledge base ID.

Unique knowledge base ID.

Query parameters

organization_idstring uuid nullable

Organization scope for API keys that can access multiple organizations.

Organization scope for API keys that can access multiple organizations.

Request body

pathstring required

Folder path to delete.

recursiveboolean

When false, only empty folders are deleted and non-empty folders return a conflict. When true, the folder and all contents are deleted.

Response

Successful Response

messagestring required

Operation result message.

pathstring required

Folder path.