Overview
Permanently delete a source connection and all its data.
What happens when you delete:
- Any running sync is cancelled and the API waits (up to 15s) 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)
The API returns immediately after step 2. Vector database cleanup happens asynchronously—the data becomes unsearchable as soon as the database records are deleted.
This action cannot be undone. All synced data will be permanently deleted.
Path Parameters
Unique UUID identifier of the source connection to deleteExample: “550e8400-e29b-41d4-a716-446655440000”
Response
Returns the deleted source connection object.
UUID of the deleted connection
Name of the deleted connection
Final status of the connection
Example Request
curl -X DELETE https://api.airweave.ai/v1/source-connections/550e8400-e29b-41d4-a716-446655440000 \
-H "Authorization: Bearer YOUR_API_KEY"
Example Response
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"organization_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "GitHub Docs Repo",
"description": "Main documentation repository",
"short_name": "github",
"readable_collection_id": "documentation-ab123",
"status": "ACTIVE",
"created_at": "2024-03-15T09:30:00Z",
"modified_at": "2024-03-15T14:22:15Z",
"auth": {
"method": "direct",
"authenticated": true
},
"config": {
"repo_name": "company/docs",
"branch": "main"
}
}
Error Responses
Source connection with the specified ID does not exist