Common

Folder Delete

Markdown for LLMs
DELETE
/common/folder/{folderId}/delete

Deletes one of the caller's folders. Send its id as folderId. The delete is permanent; a repeated delete answers 404 FOLDER_NOT_FOUND.

What was filed in the folder is kept and moves to the root: a data source filed in a deleted folder comes back from documents-data-source-get with no folderId.

Authorization

AuthorizationBearer <token>

JWT token to authenticate the request.

In: header

X-Api-Key<token>

API key, sent as a request header.

In: header

Path Parameters

folderId*string

Id of the folder to delete, as returned by common-folder-create or common-folder-list in id. Only the caller's own folders can be addressed. Must be a GUID: a value that is not one matches no route and returns a bodiless 404. A well-formed id that matches none of the caller's folders returns 404 FOLDER_NOT_FOUND.

Formatuuid

Response Body

application/json

application/json

application/json

curl -X DELETE "https://example.com/common/folder/92d62501-d227-4d9a-93b2-e904907bf981/delete"
{  "result": {    "statusCode": 200,    "message": "Deleted"  },  "origin": "DELETE https://api.doctavian.com/v1/common/folder/{folderId}/delete",  "dateTime": "2026-10-16T12:58:14.000Z",  "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5",  "operationId": "4d5e6f7a8b9c4ab1bd4e5f6071829304"}
{  "error": {    "statusCode": 404,    "message": "Not Found",    "innerErrors": [      {        "code": "FOLDER_NOT_FOUND",        "message": "Folder was not found.",        "userMessage": "The folder was not found."      }    ],    "externalErrors": []  },  "origin": "DELETE https://api.doctavian.com/v1/common/folder/{folderId}/delete",  "dateTime": "2026-10-16T12:58:10.000Z",  "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5",  "operationId": "0a4e1c7f3b8d45207f2d0a5c8e4b1f36"}
{  "error": {    "statusCode": 500,    "message": "Internal Server Error",    "innerErrors": [      {        "code": "DELETE_FOLDER_FAILED",        "message": "Failed to delete folder.",        "userMessage": "Something went wrong. Please try again or contact support.",        "eventId": "9e5a3c1f-7d2b-4046-b8f4-6c0d1e3a9b27"      }    ],    "externalErrors": []  },  "origin": "DELETE https://api.doctavian.com/v1/common/folder/{folderId}/delete",  "dateTime": "2026-10-16T12:58:06.000Z",  "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5",  "operationId": "c2f7d1b5a0e3468491d4f8b2c6e0a3d5"}