Skip to main content

deleteEdge

client.knowledgeGraph.deleteEdge(id: string, edgeId: string): Promise<unknown>

Deletes an edge from a knowledge graph instance.

Removes the relationship between two records. The records themselves are not affected.

Parameters

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the graph instance
edgeIdstringYesThe unique identifier of the edge 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.deleteEdge('id', 'edgeId');
console.log(result);