Deletes a synced source connection and its stored token. Documents it already added stay in the knowledge base. Remove them with Delete knowledge base source if you no longer want them.
Request#
| Path parameter | Type | Required | Description |
|---|---|---|---|
sync_id |
string | Yes | The connection ID, starting with kbsync_. |
Example request#
curl -X DELETE https://api.tried.com.au/delete-knowledge-base-sync/kbsync_47800c505ee631a117973dcf \
-H "Authorization: Bearer $TRIED_API_KEY"await fetch("https://api.tried.com.au/delete-knowledge-base-sync/kbsync_47800c505ee631a117973dcf", {
method: "DELETE",
headers: { Authorization: `Bearer ${process.env.TRIED_API_KEY}` },
});import os, requests
requests.delete(
"https://api.tried.com.au/delete-knowledge-base-sync/kbsync_47800c505ee631a117973dcf",
headers={"Authorization": f"Bearer {os.environ['TRIED_API_KEY']}"},
)Response#
204 No Content
The response has no body.
Errors#
| Status | When |
|---|---|
401 |
Missing or invalid API key. |
403 |
The key's IP allowlist or scopes reject the request (this route needs the kb scope), or the caller is a read-only dashboard member. |
404 |
Sync <sync_id> not found. |
429 |
Rate limit exceeded. See Rate limits. |
See Errors for the body format.