Skip to main content

Home > blockly > Workspace > deleteVariableById

Workspace.deleteVariableById() method

Warning: This API is now obsolete.

v12: use Blockly.Workspace.getVariableMap().deleteVariable.

Delete a variables by the passed in ID and all of its uses from this workspace. May prompt the user for confirmation.

Signature:

deleteVariableById(id: string): void;

Parameters

ParameterTypeDescription
idstringID of variable to delete.

Returns:

void