Wipe Database
Wipe all files from a database without deleting the database itself.
This operation soft deletes all files in the organization_files table
for the specified database (is_deleted=true, deleted_at=timestamp).
The database structure in captain_dbs remains active and intact.
Headers:
- Authorization: Bearer {api_key} - Captain API key for authentication
- X-Organization-ID: Organization UUID
This is useful for:
- Clearing out old indexed content before re-indexing
- Resetting a database to empty state
- Removing specific dataset while keeping database configuration
Args:
database_name: Name of the database to wipe files from
Returns:
StandardResponse with count of files wiped
Headers
Authorization
Captain API key for authentication
X-Organization-ID
Organization UUID
Request
This endpoint expects an object.
database_name
Response
Successful Response
success
message
error