curl -X DELETE "https://backend.botcadence.com/organizations/ORG_ID/projects/PROJECT_ID/sources/SOURCE_ID" \
-H "X-API-Key: bot_live_YOUR_KEY"
await fetch(
`https://backend.botcadence.com/organizations/${organizationId}/projects/${projectId}/sources/${sourceId}`,
{
method: "DELETE",
headers: { "X-API-Key": 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={"X-API-Key": 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 "X-API-Key: bot_live_YOUR_KEY"
await fetch(
`https://backend.botcadence.com/organizations/${organizationId}/projects/${projectId}/sources/${sourceId}`,
{
method: "DELETE",
headers: { "X-API-Key": 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={"X-API-Key": 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
string
required
Project API key for this organization and project. Format:
bot_live_…Path parameters
string
required
Organization ID. Must match the API key.
string
required
Project ID. Must match the API key.
string
required
Source / document ID.
Response
Success message.data is typically null.
Errors
Unauthorized
Missing, invalid, or revoked API key.
Forbidden
API key is not authorized for this organization or project.
Not Found
Source not found.
curl -X DELETE "https://backend.botcadence.com/organizations/ORG_ID/projects/PROJECT_ID/sources/SOURCE_ID" \
-H "X-API-Key: bot_live_YOUR_KEY"
await fetch(
`https://backend.botcadence.com/organizations/${organizationId}/projects/${projectId}/sources/${sourceId}`,
{
method: "DELETE",
headers: { "X-API-Key": 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={"X-API-Key": os.environ["BOTCADENCE_API_KEY"]},
)
{
"status": "success",
"message": "Document deleted successfully",
"data": null,
"status_code": 200
}

