Skip to main content

deletePackage

client.projectStructure.deletePackage(packageId: string): Promise<void>

Deletes a package and all its sections and items from the project structure.

Permanently removes the package definition. This does not delete actual source files, only the structural metadata describing the package.

Parameters

ParameterTypeRequiredDescription
packageIdstringYesThe unique identifier of the package to delete

Returns

Promise<void> — A promise that resolves when the package has been deleted

Example

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

const client = new CodeBoltClient();

const result = await client.projectStructure.deletePackage('packageId');
console.log(result);