# GuiInterface.clearOnCloseCallback

Clears the close callback so it will not be called when the gui is closed

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
guiInterface:clearOnCloseCallback(  )
```

[Open the full Game reference](../Game-Script-Environment/Userdata/GuiInterface.md#clearonclosecallback)

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `gui` | [GuiInterface](../Game-Script-Environment/Userdata/GuiInterface.md) | The Gui interface |
