<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [server](./server.md) &gt; [Entity](./server.entity.md) &gt; [despawn](./server.entity.despawn.md)

## Entity.despawn() method

Despawns the entity and all children from the world.

**Signature:**

```typescript
despawn(): void;
```
**Returns:**

void

