Clear Addressables Caching is not working

Hi,

I am trying to clear caching but with no luck so far.

I did use Caching.ClearCache() which is working well but I need is to clear cache for one Addressable as I use Addressables to load Scene using

AssetReference asset;
asset.LoadSceneAsync(LoadSceneMode.Additive, true);

so now I am trying to use Caching.ClearAllCachedVersions(“”); but I am not sure what should I pass to it as a bundle name I did try a lot of names but it didn’t work so far
and I am sure that it’s cleaning by using Caching.cacheCount before and after ClearAllCachedVersions but always I have one!

I believe the API to remove a specific bundle and it’s dependencies from the cache is
Addressables.ClearDependencyCacheAsync.

https://docs.unity3d.com/Packages/com.unity.addressables@1.9/api/UnityEngine.AddressableAssets.Addressables.html?q=updatecat#UnityEngine_AddressableAssets_Addressables_ClearDependencyCacheAsync_System_Object_

Thanks it worked :slight_smile: