Delete File

Soft delete a specific file from a database. This operation marks the file as deleted in the organization_files table (is_deleted=true, deleted_at=timestamp) without physically removing the data. Headers: - Authorization: Bearer {api_key} - Captain API key for authentication - X-Organization-ID: Organization UUID Args: database_name: Name of the database containing the file file_id: File ID to delete Returns: StandardResponse indicating success or failure

Headers

AuthorizationstringRequired
Captain API key for authentication
X-Organization-IDstringRequired
Organization UUID

Request

This endpoint expects an object.
database_namestringRequired
file_idstringRequired

Response

Successful Response
successboolean
messagestring
errorstring or null

Errors