Home > blockly > serialization > blocks > BlockSerializer > clear
serialization.blocks.BlockSerializer.clear() method
Disposes of any blocks that exist on the workspace.
Signature:
clear(workspace: Workspace): void;
Parameters
| Parameter | Type | Description |
|---|---|---|
| workspace | Workspace | The workspace to clear the blocks of. |
Returns:
void