I’ve found this script from Paul Beach, but I want to know if there is a better way (maybe a script included in the installation).
migrated from stackoverflow.com Jul 8 '10 at 5:02
The script is modifying environment outside of user's home directory: removing installed frameworks, global groups etc. Proper way how do this would be dedicated uninstaller. With no uninstaller available, something like that script is probably best / simplest solution.
For most applications, utilities like AppZapper handle unistallation + clean up ~/Library/ subfolders. Worth trying out for other situations - http://www.appzapper.com/, but in this case will likely not be sufficient.