# Release(Object)

> Unloads an asset previously loaded from a Resources folder.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Localization.Providers](/engine/6000.7/script-reference/unity/localization/providers.md)
* **Assembly:** UnityEngine.LocalizationRuntimeModule

```csharp
public void Release(Object asset)
```

### Parameters

**** (\[Object]\(/engine/6000.7/script-reference/unityengine/object)): The asset to unload.

### Remarks

Releases the Resources reference so the asset can be unloaded when nothing else uses it. Pass an asset returned by one of the load methods.

Release a loaded asset once it is no longer needed.

### Examples

```csharp
using System.Threading;
using Unity.Localization.Providers;
using UnityEngine;

namespace Unity.Localization.Samples
{
    public class ResourceFolderProviderReleaseExample
    {
        public async Awaitable Run()
        {
            var provider = new ResourceFolderProvider();

            var icon = await provider.LoadAssetAsync<Sprite>(
                new AssetKey("UI/Icons/Settings", typeof(Sprite)), CancellationToken.None);

            if (icon != null)
                provider.Release(icon);
        }
    }
}
```
