# disposeDownloadHandlerOnDispose

> If true, any DownloadHandler attached to this UnityWebRequest will have DownloadHandler.Dispose() called automatically when UnityWebRequest.Dispose is called.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.Networking](/engine/6000.3/script-reference/unityengine/networking.md)
* **Assembly:** UnityEngine.UnityWebRequestModule

```csharp
public bool disposeDownloadHandlerOnDispose { get; set; }
```

### Remarks

Default: true.

If no [DownloadHandler](/engine/6000.3/script-reference/unityengine/networking/downloadhandler.md) is attached to this [UnityWebRequest](/engine/6000.3/script-reference/unityengine/networking/unitywebrequest.md), this property has no effect.
