source-connections
Delete Source Connection
Permanently delete a source connection and all its synced data.
What happens when you delete:
- Any running sync is cancelled and the API waits (up to 15 s) for the worker to stop writing.
- The source connection, sync configuration, job history, and entity metadata are cascade-deleted from the database.
- A background cleanup workflow is scheduled to remove data from the vector database (Vespa) and raw data storage (ARF). This may take several minutes for large datasets but does not block the response.
The API returns immediately after step 2. Vector database cleanup happens asynchronously -- the data becomes unsearchable as soon as the database records are deleted.
Warning: This action cannot be undone.
delete/source-connections/{source_connection_id}
Path parameters
source_connection_idstring uuid required
Unique identifier of the source connection to delete (UUID)
Example:550e8400-e29b-41d4-a716-446655440000
Unique identifier of the source connection to delete (UUID)
Response
Deleted source connection
Example response
{
"auth": {
"authenticated": true,
"authenticated_at": "2024-03-15T09:30:00Z",
"method": "direct"
},
"config": {
"branch": "main",
"repo_name": "company/docs"
},
"created_at": "2024-03-15T09:30:00Z",
"description": "Main documentation repository",
"entities": {
"by_type": {
"file": {
"count": 1250
}
},
"total_entities": 1250
},
"federated_search": false,
"id": "550e8400-e29b-41d4-a716-446655440000",
"modified_at": "2024-03-15T14:22:15Z",
"name": "GitHub Docs Repo",
"readable_collection_id": "documentation-ab123",
"schedule": {
"cron": "0 */6 * * *",
"next_run": "2024-03-15T18:00:00Z"
},
"short_name": "github",
"status": "ACTIVE",
"sync": {
"failed_runs": 1,
"last_job": {
"completed_at": "2024-03-15T12:05:32Z",
"duration_seconds": 332,
"entities_inserted": 45,
"entities_updated": 12,
"id": "770e8400-e29b-41d4-a716-446655440002",
"started_at": "2024-03-15T12:00:00Z",
"status": "COMPLETED"
},
"successful_runs": 14,
"total_runs": 15
}
}