# Dispose()

> Dispose the Scratchpad. This must be called to unregister and free the ScratchpadAllocators this Scratchpad contains.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

```csharp
[ExcludeFromBurstCompatTesting("Accesses managed delegate")]
public void Dispose()
```
