# Dispose

> Releases all resources (memory).

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections](/engine/6000.7/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.ManagedKernelModule

## Dispose()

Releases all resources (memory).

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

## Dispose(JobHandle)

Creates and schedules a job that will dispose this hash map.

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

### Parameters

**** (\[JobHandle]\(/engine/6000.7/script-reference/unity/jobs/jobhandle)): A job handle. The newly scheduled job will depend upon this handle.

### Returns

| Type                                                                 | Description                                              |
| -------------------------------------------------------------------- | -------------------------------------------------------- |
| [JobHandle](/engine/6000.7/script-reference/unity/jobs/jobhandle.md) | The handle of a new job that will dispose this hash map. |
