English
English
Appearance
English
English
Appearance
https://api.repliz.com/public/knowledge/{knowledgeId}Remove a knowledge and all its sources. Its _id is taken out of knowledgeIds on every account, content automation, and template that uses it, so their AI replies go on without it. Files picked from Repliz Storage stay in storage.
Authorization: Basic Base64(AccessKey:SecretKey)) or Bearer token from Login with Replizknowledge:write| Parameter | Type | Required | Description |
|---|---|---|---|
knowledgeId | string | Yes | ID of the knowledge, the _id from Get Knowledge. |
curl -X DELETE "https://api.repliz.com/public/knowledge/680affa5ce12f2f72916f67e" \
-H "Authorization: Basic $(echo -n 'YOUR_ACCESS_KEY:YOUR_SECRET_KEY' | base64)"import axios from 'axios';
const knowledgeId = '680affa5ce12f2f72916f67e';
const response = await axios.delete(`https://api.repliz.com/public/knowledge/${knowledgeId}`, {
auth: {
username: 'YOUR_ACCESS_KEY',
password: 'YOUR_SECRET_KEY',
},
});
console.log(response.status);const credentials = btoa('YOUR_ACCESS_KEY:YOUR_SECRET_KEY');
const knowledgeId = '680affa5ce12f2f72916f67e';
const response = await fetch(`https://api.repliz.com/public/knowledge/${knowledgeId}`, {
method: 'DELETE',
headers: {
Authorization: `Basic ${credentials}`,
},
});
console.log(response.status);// No content returned on success{
"code": 404,
"message": "knowledge not found"
}{
"code": 401,
"message": "unauthorized"
}