blockly > WorkspaceSvg > deleteVariableById
WorkspaceSvg.deleteVariableById() method
Delete a variable by the passed in ID. Update the flyout to show immediately that the variable is deleted.
Signature:
deleteVariableById(id: string): void;
Parameters
Parameter | Type | Description |
---|---|---|
id | string | ID of variable to delete. |
Returns:
void