Deletes one or more files from a namespace in document storage (S3). The namespace must belong to the authenticated user. Supports single-file or multiple-file deletion in one request.
Deletion is permanent (S3 DeleteObject). Deleted files are not moved to a trash. You can only delete files in namespaces you own.
You can specify files in the body and/or via query; all are collected and deleted in one call. At least one of: body file_name, body file_names, or query file_name is required.
Alternative way to specify a single file (e.g. ?file_name=report.pdf). Can be combined with body.
Preferred field names are snake_case. Legacy camelCase (fileName, fileNames) is still accepted for backward compatibility and returns deprecation headers (Deprecation, Sunset, Warning). CamelCase support is deprecated and scheduled for removal on 1 May 2026.
One entry per file. Each has file_name, status ("deleted" or "error"), and message. If a file does not exist, that entry has status: "error" and message: "File not found"; other files are still processed.