Removes every conversation from the case found by caseId or caseSlug in the organization given by orgId or orgSlug: conversations linked only to this case are deleted and the rest are unlinked. With deleteCaseIfNoConversationsLeft, a case left with no conversations is soft-deleted along with its access, extraction codes, comments, data sources and files. Returns a message with the counts, or 404 for an unknown organization or case. Super admin only.
DELETE
/admin/case/delete-case-conversations
curl \
--request DELETE 'http://api.example.com/admin/case/delete-case-conversations' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"caseId": "string",
"caseSlug": "string",
"orgId": "string",
"orgSlug": "string",
"deleteCaseIfNoConversationsLeft": false
}'
Request examples
{
"caseId": "string",
"caseSlug": "string",
"orgId": "string",
"orgSlug": "string",
"deleteCaseIfNoConversationsLeft": false
}
Response examples (200)
{
"data": {
"message": "Done",
"isSuccess": true
},
"statusCode": 200,
"timestamp": "2026-01-15T10:15:00.000Z"
}