Home > blockly > VariableMap > deleteVariableById
VariableMap.deleteVariableById() method
Warning: This API is now obsolete.
v12: use Blockly.Variables.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