Wipe Database
Remove all indexed files from a database while keeping the database structure.
Headers:
- Authorization: Bearer {api_key} - Captain API key for authentication
- X-Organization-ID: Organization UUID
Use cases:
- Clear old indexed content before re-indexing
- Reset a database to empty state
- Remove dataset while keeping database configuration
Args:
database_name: Name of the database to clear
Returns:
Response with count of files removed
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