blockly > VariableMap > deleteVariableById
VariableMap.deleteVariableById() method
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