Removing Old Eclipse Versions
By Ercan S. - 13/04/2025 - 0 comments
In Eclipse-based IDEs, after performing an update, files from previous versions are retained.
To remove these files, first delete the old versions from the Installation History. Then, retrieve the value of eclipse.p2.profile from the «installation_path»/configuration/config.ini file. Use this value in the following command:
eclipse -application org.eclipse.equinox.p2.garbagecollector.application -profile <<profile>>
Example usage:
.\dbeaver.exe -application org.eclipse.equinox.p2.garbagecollector.application -profile DefaultProfile
.\eclipse.exe -application org.eclipse.equinox.p2.garbagecollector.application -profile epp.package.php
Example on MacOS
➜ pwd /Applications/Eclipse.app/Contents ➜ ./MacOS/eclipse -application org.eclipse.equinox.p2.garbagecollector.application -profile epp.package.php
This process helps in cleaning up unnecessary files from older versions of Eclipse-based IDEs.