Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

How do i uninstall modules ?

Discussion in 'Editor & General Support' started by Tassilo593, Jun 12, 2020.

  1. Tassilo593

    Tassilo593

    Joined:
    May 6, 2020
    Posts:
    45
    Hello i want to uninstall a module but how ?
     
    RafaelLAlexandrino likes this.
  2. DiegoDePalacio

    DiegoDePalacio

    Unity Technologies

    Joined:
    Oct 28, 2009
    Posts:
    507
  3. Tassilo593

    Tassilo593

    Joined:
    May 6, 2020
    Posts:
    45
    I mean modules for exporting into other type of device files
     
  4. Tassilo593

    Tassilo593

    Joined:
    May 6, 2020
    Posts:
    45
    like android : with this module i can export to apk
     
  5. DiegoDePalacio

    DiegoDePalacio

    Unity Technologies

    Joined:
    Oct 28, 2009
    Posts:
    507
  6. firdiar

    firdiar

    Joined:
    Aug 2, 2017
    Posts:
    26
  7. Binary42

    Binary42

    Joined:
    Aug 15, 2013
    Posts:
    207
    Bump
     
    PsijicNine and deus0 like this.
  8. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,702
    You can just delete the platform folder in PlaybackEngines folder within Unity installation.
     
  9. Binary42

    Binary42

    Joined:
    Aug 15, 2013
    Posts:
    207
    We need to uninstall not delete. In my case the NDK failed to install and i need to reinstall it, deleting it doesn't unregister it from unity hub modules.
     
  10. oesteerigrek

    oesteerigrek

    Joined:
    Dec 12, 2017
    Posts:
    6
    I also need to uninstall android module for particular Unity editor installation. Any idea how to properly do it?
    I need to reinstall the android module as unity complains that android build tools are not installed - even tho they are in place and were installed via UnityHub.
     
    PsijicNine likes this.
  11. Binary42

    Binary42

    Joined:
    Aug 15, 2013
    Posts:
    207
    I ended up reinstalling the whole editor
     
  12. BoraMakar

    BoraMakar

    Joined:
    Oct 18, 2020
    Posts:
    4
    In the root folder of your desired editor version, something like "C:\Program Files\Unity\Hub\Editor\<YOUR_DESIRED_VERSION>" there is a file called "modules.json". You need to go through that file and change the "selected" key to be false instead of true for all the things you want to install/reinstall. Afterwards, when you reopen Unity Hub, you should be able to select those modules for installation. I deleted the files manually before reinstalling, but based on how it works you may not need to. I will still suggest that you do the manual uninstall first as well for the sake of avoiding potential conflicts.

    Here's how the file looks like when you turn it into the pretty format, but using a text editor like N++, you can just find all occurrences of "selected" and then understand what you're dealing with based on each result. That way you don't have to paste the prettified format and change the one-liner with relative ease.

    Good luck!

    upload_2022-1-7_2-12-33.png
     
  13. devotionsolutions

    devotionsolutions

    Joined:
    Feb 9, 2013
    Posts:
    40
    Tried this and worked like a charm. Tested with Unity Hub 3.0.1 & Unity Editor 2021.2.14f1
     
    deus0 and Mgagaga97 like this.
  14. RafaelLAlexandrino

    RafaelLAlexandrino

    Joined:
    Feb 2, 2022
    Posts:
    1
    SOLVED! Thank you for the solution, @BoraMaker!

    Just one addition: if you, like me, are trying to remove an android module, you have to remove the all modules folders relationed to android build player and set "selected" key as "false" in them all. I just solved my problem by this way.
     
    deus0 and Mgagaga97 like this.
  15. kiyato0

    kiyato0

    Joined:
    May 10, 2022
    Posts:
    1
    Thank you so much kind person.
    I finally reinstalled it because of your help.
     
    deus0 likes this.
  16. mitaywalle

    mitaywalle

    Joined:
    Jul 1, 2013
    Posts:
    261
    Thank you
     
  17. Yodzilla

    Yodzilla

    Joined:
    Mar 21, 2013
    Posts:
    48
    As of Unity Hub 3.2.0 this doesn't seem to work any more for some reason. Bummer and absolutely bonkers that Unity doesn't provide a way of uninstalling or repairing modules through their UI that they make you use.
     
  18. BoraMakar

    BoraMakar

    Joined:
    Oct 18, 2020
    Posts:
    4
    Which version of the editor are you trying this with? For the older LTS version I'm still able to find and modify the modules.json file to provide the same functionality. My test version is 2020.3.35 for editor and 3.2.0 for Unity Hub to be precise but I didn't test with 2021.x yet. Keep in mind that you will need to restart Unity Hub for the changes to take effect, and you will see the tag of the module in the Installs tab but once you select Add Modules for your desired editor version you should be able to check the box for the module and confirm your choice to force Unity Hub to reinstall that module. In case you missed something, here are some things to keep in mind:

    1- You can see the location of your editor installation under Installs tab, directly below the version of the editor.
    2- You need to have all instances of the editor closed before doing this for the sake of avoiding issues. Unity Hub will try to uninstall old files and folder, which cannot be completed while an editor is open.
    3- You need to restart Unity Hub after changing the modules.json file. Unity Hub most likely only checks those files once when loading all the resources and just uses the information on memory when deciding what to show.
    4- You can find and delete the folder containing the module manually but unless you change the entry in modules.json file you will not see any effects.
    5- There might be multiple similar entries in modules.json that affect different stuff. Make sure you are changing the correct part of it. For easy navigation, you can try searching the file with a specific string used to describe the module you are interested in. Every bit of information including module name, description, download link, destination folder and some other stuff you can check in detail are listen in that file.
    6- As a warning due to the sentence above, since every bit of information related to modules is actually coming from this file, and the file is used mostly like a read-only database for determining the state of the UI, any changes you make to the data will be permanent and might break stuff. Navigating the file isn't complicated, but an extra character here or some deleted character there can cause issues.

    @Yodzilla If you still cannot manage to make this work, please let me know along with additional details and I'll look for the issue and a possible solution.
     
  19. samvilm

    samvilm

    Joined:
    Jan 17, 2021
    Posts:
    43
    I followed all this but the hub still claims the modules are installed
     
    PsijicNine likes this.
  20. samvilm

    samvilm

    Joined:
    Jan 17, 2021
    Posts:
    43
    just updated to latest hub and now works. Thanks!
     
  21. Tortuap

    Tortuap

    Joined:
    Dec 4, 2013
    Posts:
    137
    They prefer spend time on much useless features such as dark UI mode..
     
    valentin56610 likes this.
  22. MarkHelsinki

    MarkHelsinki

    Joined:
    Jul 14, 2021
    Posts:
    23
    I managed to trigger the reinstall this way using hub 3.2.0 and 2021.3.6f1

    I did a search for
    Code (CSharp):
    1. "selected": true,
    and that showed me the modules I'd installed and I set to false for the Android ones, after deleting the folders (you might have to stop the adb.exe via Task Manager to delete files) and restarting Unity Hub.

    I also used JSTools in N++ to get the pretty formatting, which also makes it easier to navigate the modules.json file.

    Thanks BoraMakar - you made it easy.
     
    TheAncientObserver and deus0 like this.
  23. daxiongmao

    daxiongmao

    Joined:
    Feb 2, 2016
    Posts:
    412
    Make sure you kill any hub processes in the background. Not just close the hub app. :(
     
    mitaywalle likes this.
  24. CreativePrismStudio

    CreativePrismStudio

    Joined:
    Nov 16, 2017
    Posts:
    7
    I would love a feature to uninstall and reinstall modules in Unity, especially since the latest hub where my module install fails and it just chugs forward. Now I have to reinstall the entire editor.
     
    valentin56610 likes this.
  25. modernator24

    modernator24

    Joined:
    Apr 7, 2017
    Posts:
    207
    Kind of annoying that the module can't be uninstalled without deleting a whole unity version.
     
    valentin56610 likes this.
  26. ahmedaniss

    ahmedaniss

    Joined:
    Sep 18, 2019
    Posts:
    98
    problem fixed here:
     
  27. farukaygun

    farukaygun

    Joined:
    Nov 23, 2020
    Posts:
    19
    I found an alternative version for reinstall modules. Unity Hub -> Installs -> Install Editor -> Archive -> Click the download archive -> Click Release Notes -> Download your module from additional downloads.

    It will remove installed module and install which you downloaded.
     
    qeqseverem and Sarrixx like this.
  28. Julydevelopergame

    Julydevelopergame

    Joined:
    Jun 10, 2023
    Posts:
    65
  29. modernator24

    modernator24

    Joined:
    Apr 7, 2017
    Posts:
    207
    It's 2024, and there is still no way to remove modules. Really stupid.
     
  30. Julydevelopergame

    Julydevelopergame

    Joined:
    Jun 10, 2023
    Posts:
    65
    i got you. go to your unity folder. editor and click data. and click playbackengine and click what module you want to remove. AndroidPlayer. click left mouse and click delete. now your problem was solved
     
  31. modernator24

    modernator24

    Joined:
    Apr 7, 2017
    Posts:
    207
    I just uninstalled the entire version. Thanks anyway
     
  32. Julydevelopergame

    Julydevelopergame

    Joined:
    Jun 10, 2023
    Posts:
    65
    your welcome man