Skip to main content

deleteRecord

client.knowledgeGraph.deleteRecord(id: string, recordId: string): Promise<unknown>

Deletes a record from a knowledge graph instance.

Removes the node and any edges connected to it. This may affect the connectivity of the graph.

Parameters​

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the graph instance
recordIdstringYesThe unique identifier of the record to delete

Returns​

Promise<unknown> — A promise that resolves when deletion is complete

Example​

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.knowledgeGraph.deleteRecord('id', 'recordId');
console.log(result);