# UnloadAsync()

> Begin an asynchronous unload of the ContentFile.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Loading](/engine/6000.7/script-reference/unity/loading.md)
* **Assembly:** UnityEngine.ContentLoadModule

```csharp
public ContentFileUnloadHandle UnloadAsync()
```

### Returns

| Type                                                                                                | Description                                                            |
| --------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| [ContentFileUnloadHandle](/engine/6000.7/script-reference/unity/loading/contentfileunloadhandle.md) | A handle that can be used to track the status of the unload operation. |

### Remarks

If you call this while a load is in progress, it will attempt to cancel the loading process.

This must be called in order to release resources, even when the [ContentFile](/engine/6000.7/script-reference/unity/loading/contentfile.md) load operation was not successful.

An exception will be thrown if this [ContentFile](/engine/6000.7/script-reference/unity/loading/contentfile.md) is being used as a dependency by another [ContentFile](/engine/6000.7/script-reference/unity/loading/contentfile.md). In this case, the other file must be unloaded first.
