# sm.debugDraw.clear

Removes all debug draws beginning with a given name.

**Kind:** Function

**Environments:** Game, Terrain

## Game

``` { .lua .api-signature }
sm.debugDraw.clear( name? )
```

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

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `name` *(optional)* | string | The name to match (Defaults to "", matching all debug draws). |

## Terrain

``` { .lua .api-signature }
sm.debugDraw.clear( name? )
```

[Open the full Terrain reference](../Terrain-Script-Environment/Static-Functions/sm.debugDraw.md#clear)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `name` *(optional)* | string | The name to match (Defaults to "", matching all debug draws). |
