# Delete uploaded case files (internal) **POST /admin/case-files/{caseId}/delete** 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. ## Servers - http://api.example.com: http://api.example.com () ## Authentication methods - Access token ## Parameters ### Path parameters - **caseId** (string) Id of the case the files were uploaded to ### Body: application/json (object) - **caseFileIds** (array[string]) CaseFile ids to delete (max 1000). Every id must be an uploaded file on the case (not a CMP-synced legal document). Omit when sending `all`. - **all** (boolean) Delete every uploaded case file on the case. Omit when sending `caseFileIds`. ## Responses ### 200 #### Body: application/json (object) - **data** (object) - **statusCode** (number) - **timestamp** (string(date-time)) [Powered by Bump.sh](https://bump.sh)