<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [server](./server.md) &gt; [ChunkLattice](./server.chunklattice.md) &gt; [clear](./server.chunklattice.clear.md)

## ChunkLattice.clear() method

Removes and clears all chunks and their blocks from the lattice.

Use for: full world resets or map reloads. Do NOT use for: incremental changes; use `ChunkLattice.setBlock`<!-- -->.

**Signature:**

```typescript
clear(): void;
```
**Returns:**

void

## Remarks

\*\*Removes colliders:\*\* All block type colliders are removed from the physics simulation.

\*\*Emits events:\*\* Emits `REMOVE_CHUNK` for each chunk before clearing.

\*\*Side effects:\*\* Clears all chunks, placements, and block colliders.

\*\*Category:\*\* Blocks

