curl -X DELETE "https://backend.botcadence.com/organizations/ORG_ID/projects/PROJECT_ID/sources/SOURCE_ID" \
-H "Authorization: Bearer bot_live_YOUR_KEY"
await fetch(
`https://backend.botcadence.com/organizations/${organizationId}/projects/${projectId}/sources/${sourceId}`,
{
method: "DELETE",
headers: { "Authorization": `Bearer ${process.env.BOTCADENCE_API_KEY}` },
}
);
import os
import requests
requests.delete(
f"https://backend.botcadence.com/organizations/{organization_id}/projects/{project_id}/sources/{source_id}",
headers={"Authorization": f"Bearer {os.environ['BOTCADENCE_API_KEY']}"},
)
{
"status": "success",
"message": "Document deleted successfully",
"data": null,
"status_code": 200
}
Sources
Delete source
Delete a knowledge-base source and restore usage quota
DELETE
/
organizations
/
{organization_id}
/
projects
/
{project_id}
/
sources
/
{source_id}
curl -X DELETE "https://backend.botcadence.com/organizations/ORG_ID/projects/PROJECT_ID/sources/SOURCE_ID" \
-H "Authorization: Bearer bot_live_YOUR_KEY"
await fetch(
`https://backend.botcadence.com/organizations/${organizationId}/projects/${projectId}/sources/${sourceId}`,
{
method: "DELETE",
headers: { "Authorization": `Bearer ${process.env.BOTCADENCE_API_KEY}` },
}
);
import os
import requests
requests.delete(
f"https://backend.botcadence.com/organizations/{organization_id}/projects/{project_id}/sources/{source_id}",
headers={"Authorization": f"Bearer {os.environ['BOTCADENCE_API_KEY']}"},
)
{
"status": "success",
"message": "Document deleted successfully",
"data": null,
"status_code": 200
}
Deletes a knowledge-base source (file, URL, or domain) and restores related usage quota.
This action cannot be undone.
Authentication
Path parameters
Response
Success message.data is typically null.
Errors
curl -X DELETE "https://backend.botcadence.com/organizations/ORG_ID/projects/PROJECT_ID/sources/SOURCE_ID" \
-H "Authorization: Bearer bot_live_YOUR_KEY"
await fetch(
`https://backend.botcadence.com/organizations/${organizationId}/projects/${projectId}/sources/${sourceId}`,
{
method: "DELETE",
headers: { "Authorization": `Bearer ${process.env.BOTCADENCE_API_KEY}` },
}
);
import os
import requests
requests.delete(
f"https://backend.botcadence.com/organizations/{organization_id}/projects/{project_id}/sources/{source_id}",
headers={"Authorization": f"Bearer {os.environ['BOTCADENCE_API_KEY']}"},
)
{
"status": "success",
"message": "Document deleted successfully",
"data": null,
"status_code": 200
}

