Skip to main content

deleteViewTemplate

client.knowledgeGraph.deleteViewTemplate(id: string): Promise<unknown>

Deletes a view template.

Removes the template definition. Views created from this template continue to exist independently.

Parameters

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the view template 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.deleteViewTemplate('id');
console.log(result);