jcr size uninstalled modules Jahia 7.3 Jahia 8

How to remove jars of uninstalled modules from the JCR

Question

How to remove uninstalled modules stored in the JCR? 

Answer

Prior to Jahia 8.1.2.1, modules are never removed from the modules-management node. This means any module unistalled is still stored in the JCR.

In order to clean up those module, you can:

- Upgrade Jahia to 8.1.2.1 or later, at startup, a check is done to remove any non installed modules from the JCR.

- On versions older that 8.1.2.1, you can run the same script from the groovy console in the tools. To access the groovy console, connect as root user, then go the following URL: https://your_server_name/modules/tools/groovyConsole.jsp. Execute the following script