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
| Parameter | Type | Description |
|---|---|---|
| id | string | ID of variable to delete. |
Returns:
void