@wildix/wim-knowledge-base-client > DeleteDocumentCommand
DeleteDocumentCommand class
Delete a document by its ID
Signature:
export declare class DeleteDocumentCommand extends DeleteDocumentCommand_base
Extends: DeleteDocumentCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { KnowledgeBaseClient, DeleteDocumentCommand } from "@wildix/wim-knowledge-base-client"; // ES Modules import
// const { KnowledgeBaseClient, DeleteDocumentCommand } = require("@wildix/wim-knowledge-base-client"); // CommonJS import
const client = new KnowledgeBaseClient(config);
const input = { // DeleteDocumentInput
companyId: "STRING_VALUE",
dataSourceId: "STRING_VALUE", // required
documentId: "STRING_VALUE", // required
};
const command = new DeleteDocumentCommand(input);
const response = await client.send(command);
// {};