# Dispose()

> Dispose of the SearchIndexer.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Search](/engine/6000.5/script-reference/unityeditor/search.md)
* **Assembly:** UnityEditor

```csharp
public void Dispose()
```

### Remarks

It is important to dispose of the [SearchIndexer](/engine/6000.5/script-reference/unityeditor/search/searchindexer.md) to release its resources when it is no longer needed.
