Skip to main content

@wildix/wim-knowledge-base-client > CleanDataSourceCommand

CleanDataSourceCommand class

Clean the data source by its ID. It will clean all documents and sync logs. This operation is irreversible.

Signature:

export declare class CleanDataSourceCommand extends CleanDataSourceCommand_base 

Extends: CleanDataSourceCommand_base

Example

Use a bare-bones client and the command you need to make an API call.

import { KnowledgeBaseClient, CleanDataSourceCommand } from "@wildix/wim-knowledge-base-client"; // ES Modules import
// const { KnowledgeBaseClient, CleanDataSourceCommand } = require("@wildix/wim-knowledge-base-client"); // CommonJS import
const client = new KnowledgeBaseClient(config);
const input = { // CleanDataSourceInput
companyId: "STRING_VALUE",
dataSourceId: "STRING_VALUE", // required
};
const command = new CleanDataSourceCommand(input);
const response = await client.send(command);
// {};