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
Authorization
Captain API key for authentication
X-Organization-ID
Organization UUID
Request
This endpoint expects an object.
database_name
file_id
Response
Successful Response
success
message
error