Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The document ID to delete
Example:
"doc_xyz789"
Response
200 OK
import { PeriskopeApi } from '@periskope/periskope-client';
const client = new PeriskopeApi({
authToken: 'YOUR_API_KEY',
phone: 'YOUR_PHONE_NUMBER', // e.g., '919876543210'
});
async function deleteDocument() {
const response = await client.knowledgeBase.deleteDocument({
document_id: 'doc_xyz789'
});
console.log(response);
}
deleteDocument();{
"document_id": "88a010a1-c6ac-4f8f-be15-850bee5372b7"
}Delete all entries and storage files for a document by document_id
import { PeriskopeApi } from '@periskope/periskope-client';
const client = new PeriskopeApi({
authToken: 'YOUR_API_KEY',
phone: 'YOUR_PHONE_NUMBER', // e.g., '919876543210'
});
async function deleteDocument() {
const response = await client.knowledgeBase.deleteDocument({
document_id: 'doc_xyz789'
});
console.log(response);
}
deleteDocument();{
"document_id": "88a010a1-c6ac-4f8f-be15-850bee5372b7"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The document ID to delete
"doc_xyz789"
200 OK
Was this page helpful?