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

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

Request

This endpoint expects an object.
database_namestringRequired

Response

Successful Response
successboolean
messagestring
errorstring or null

Errors