# sm.unit.forceDestroy

Destroys a unit.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.unit.forceDestroy( unit )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.unit.md#forcedestroy)

**Availability:** Server only

If the unit does not exist at the moment, it is removed from the save file. This will stop it from loading back into the game.

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `unit` | [Unit](../Game-Script-Environment/Userdata/Unit.md) | The unit. |
