# Dispose

> Use this method to clean up the memory this query references.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

## Dispose()

Use this method to clean up the memory this query references.

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

## Dispose(JobHandle)

Use this method to clean up the memory this query references.

```csharp
public JobHandle Dispose(JobHandle inputDeps)
```

### Parameters

**** (\[JobHandle]\(/engine/6000.6/script-reference/unity/jobs/jobhandle)):&#x20;

### Returns

| Type                                                                 | Description |
| -------------------------------------------------------------------- | ----------- |
| [JobHandle](/engine/6000.6/script-reference/unity/jobs/jobhandle.md) |             |
