Delete Knowledge Base
curl --request DELETE \
--url https://prod-api.ringg.ai/ca/api/v0/external/kb/{kb_id} \
--header 'X-API-KEY: <api-key>'import requests
url = "https://prod-api.ringg.ai/ca/api/v0/external/kb/{kb_id}"
headers = {"X-API-KEY": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://prod-api.ringg.ai/ca/api/v0/external/kb/{kb_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"message": "Knowledge Base deleted successfully",
"kb_id": "550e8400-e29b-41d4-a716-446655440000"
}{
"message": "Invalid credentials"
}{
"message": "<string>"
}Delete Knowledge Base
Delete a knowledge base and all of its files, URLs and FAQs permanently; agents that use it stop answering from it at once, so detach or replace it first.
DELETE
/
external
/
kb
/
{kb_id}
Delete Knowledge Base
curl --request DELETE \
--url https://prod-api.ringg.ai/ca/api/v0/external/kb/{kb_id} \
--header 'X-API-KEY: <api-key>'import requests
url = "https://prod-api.ringg.ai/ca/api/v0/external/kb/{kb_id}"
headers = {"X-API-KEY": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://prod-api.ringg.ai/ca/api/v0/external/kb/{kb_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"message": "Knowledge Base deleted successfully",
"kb_id": "550e8400-e29b-41d4-a716-446655440000"
}{
"message": "Invalid credentials"
}{
"message": "<string>"
}Attach a replacement first with the
attach_kb operation of Edit agent settings. To change only some content, use Edit knowledge base instead; it keeps the kb_id and the agents attached.
Authorizations
Headers
(Required) Your Ringg AI API key.
Example:
"rg_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
Path Parameters
(Required) ID of the knowledge base to delete
Example:
"550e8400-e29b-41d4-a716-446655440000"
Was this page helpful?