Soft-deletes files uploaded to the case through the portal or by custodians, either the ids in caseFileIds or all of them with all; documents synced from a legal integration are not touched. Deleted files leave every case view and the files data source counts go down. Returns how many files matched, already deleted ones included, and how many this call deleted, so a retry deletes nothing. Returns 404 for an unknown case or when any id is not an uploaded file on the case. Super admin only.
POST
/admin/case-files/{caseId}/delete
curl \
--request POST 'http://api.example.com/admin/case-files/{caseId}/delete' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"caseFileIds": [
"string"
],
"all": true
}'
Request examples
{
"caseFileIds": [
"string"
],
"all": true
}
Response examples (200)
{
"data": {
"matched": 4,
"deleted": 4
},
"statusCode": 200,
"timestamp": "2026-01-15T10:15:00.000Z"
}