Skip to main content

deleteItem

client.projectStructure.deleteItem(packageId: string, section: string, itemId: string): Promise<void>

Removes an item from a package section.

Deletes the structural reference to an item within a package section. This only removes the metadata entry, not the actual underlying file or resource.

Parameters

ParameterTypeRequiredDescription
packageIdstringYesThe unique identifier of the package
sectionstringYesThe name of the section containing the item
itemIdstringYesThe unique identifier of the item to remove

Returns

Promise<void> — A promise that resolves when the item has been removed

Example

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

const client = new CodeBoltClient();

const result = await client.projectStructure.deleteItem('packageId', 'section', 'itemId');
console.log(result);