# ReleaseAllAssets()

> Releases every cached asset across all locales.

## Definition

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

```csharp
public void ReleaseAllAssets()
```

### Remarks

Frees all localized assets held by the database's cache. Each asset is reloaded through the provider chain the next time it is requested. To release only one locale's assets, use [ResourceDatabase.ReleaseAssets](/engine/6000.7/script-reference/unity/localization/resourcedatabase/releaseassets.md).

Releases all cached assets, for example before unloading a scene.

### Examples

```csharp
using Unity.Localization;

namespace Unity.Localization.Samples
{
    public class ReleaseAllAssetsExample
    {
        public void Run()
        {
            LocalizationSettings.ResourceDatabase.ReleaseAllAssets();
        }
    }
}
```
