Delete a folder

delete an empty agent folder.

DELETE https://api.centerfy.ai/webhooks/inbound/agent-folders/:id

Headers

HeaderRequiredValueDescription
x-api-keyYesyour sub-account API key (cfy_…)authenticates the request; or Authorization: Bearer <key>.

Path parameters

NameTypeRequiredDescription
idstring (uuid)Yesthe agent folder id to delete.

Example

curl -X DELETE "https://api.centerfy.ai/webhooks/inbound/agent-folders/{id}" \
  -H "x-api-key: $CENTERFY_API_KEY"
import { CenterfyClient } from "@centerfy/sdk";

const centerfy = new CenterfyClient({ apiKey: process.env.CENTERFY_API_KEY! });

const result = await centerfy.agentFolders.delete("<folderId>");
console.log(result);
centerfy agentFolders delete <folderId>

MCP tool: centerfy_agent_folders_delete (see MCP server)

Response

{
  "status": "success",
  "deleted": true,
  "folder_id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
}

Errors

  • 400 — if the folder id is invalid; 404 if the folder does not exist; 409 if the folder is not empty; 500 on failure.

Notes

The folder must be EMPTY: if any agents are still assigned, the delete is REFUSED with 409 (the body includes agent_count) — remove them first via DELETE …/agents/:agentId.

© 2026 Centerfy AI. All rights reserved.