# UnregisterDestructionCallback(Action<GameWindow>)

> Unregisters a callback so it is no longer invoked when the window is destroyed.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Windowing](/engine/6000.7/script-reference/unityengine/windowing.md)
* **Assembly:** UnityEngine.WindowingModule

```csharp
public bool UnregisterDestructionCallback(Action<GameWindow> callback)
```

### Parameters

**** (\[Action\<GameWindow>]\(https\://learn.microsoft.com/dotnet/api/system.action)): The callback to remove.

### Returns

| Type                                                          | Description                                                    |
| ------------------------------------------------------------- | -------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the callback is successfully removed, false otherwise. |

### Remarks

You don't need to unregister a destruction callback before the window is destroyed. Destroying a window clears all of its registered callbacks.
