Search Unity

How to delete unused bundle on mobile

Discussion in 'Addressables' started by whowh, May 28, 2019.

  1. whowh

    whowh

    Joined:
    Mar 7, 2019
    Posts:
    23
    Hi

    I have a question as title.

    I have a bundle without select static content.
    And I download the bundle on mobile.

    And then I change the assets of group and use update build.
    Then I get a new bundle.

    Then I relaunch app,it will download the new bundle and use it.
    How do I delete the old version bundle on mobile if the old bundle is not use anymore?
    Is there a way to find unused bundle and delete it on mobile?

    Thanks.
     
  2. Kerber996

    Kerber996

    Joined:
    Nov 9, 2016
    Posts:
    23
    Well, if you use Asset Bundle Cache for the group, i guess it will only keep one latest version of that group cached. As I'm not so sure how that part works, try and see if you local files (on mobile) grows as your app updates, if it doesn't then you know that it keep one version to himself (the latest). Post back what you find, I'm also interested to see results :D
     
  3. whowh

    whowh

    Joined:
    Mar 7, 2019
    Posts:
    23
    Hi

    I try in packed mode.
    The system will keep old version bundle even it does not use anymore.

    thanks.
     
  4. unity_bill

    unity_bill

    Joined:
    Apr 11, 2017
    Posts:
    1,053
    we're working on a feature to cleanup unused bundles. In the interim, those bundles will eventually go away depending on your cache settings.
     
  5. androshchuk-vladyslav

    androshchuk-vladyslav

    Joined:
    Dec 13, 2015
    Posts:
    127
    It needs to be options to set unused time to specific bundles(groups, entries, addresses paths) then to all of them. Life we have some feature users don't play a lot, but I want it to stay 2 months on device from last load. Other features should go away after 3 days weren't in use.
     
    unity_bill likes this.