Deletes every email thread, email and attachment imported into the case from email account providerId, then rolls back the case's collection status for that account. Runs synchronously and reports how many threads were deleted; returns 404 for an unknown case or account. Super admin only.
DELETE
/admin/email/{caseId}/imported-emails/{providerId}
curl \
--request DELETE 'http://api.example.com/admin/email/{caseId}/imported-emails/{providerId}' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"data": {
"message": "Done",
"isSuccess": true
},
"statusCode": 200,
"timestamp": "2026-01-15T10:15:00.000Z"
}