Skip to content

gi-nx


gi-nx / deleteBlock

ts
function deleteBlock(blockId: string): void;

Removes a block definition from the project.

Parameters

ParameterTypeDescription
blockIdstringThe id of the block to delete.

Returns

void

Throws

If no block with the given id exists.

Example

ts
gi.deleteBlock("94d84733617e4c2d91b87a4da6106e8a");