Delete Folder
Delete a specific folder identified by its folderId and remove its reference from associated flows.
DELETE
Path Parameters
folderIdstringrequiredThe unique identifier of the folder to delete.
Response Fields
_idstringThe unique identifier of the deleted folder.
workspaceIdstringThe identifier of the workspace where the folder belonged.
namestringThe name of the deleted folder.
colorstringThe color of the deleted folder, represented as a hex code.
iconstringThe icon identifier for the deleted folder.
flowTypestringThe type of flow, either "call" or "message".
pathwayModelstringThe model type for flows, derived from flowType.
pathwaysarrayAn array of flow IDs that were associated with the deleted folder.
createdAtstringTimestamp when the folder was created (ISO 8601 format).
updatedAtstringTimestamp when the folder was last updated (ISO 8601 format).
{
"_id": "folder123",
"workspaceId": "workspace456",
"name": "My Workflow Folder",
"color": "#FF0000",
"icon": "folder-icon",
"flowType": "call",
"pathwayModel": "Flow",
"pathways": ["flow123"],
"createdAt": "2023-10-15T09:30:00Z",
"updatedAt": "2023-10-15T10:00:00Z"
}