|launchctl unload /Library/LaunchAgents/org.macosforge.xquartz.startx.plist && \|
|sudo launchctl unload /Library/LaunchDaemons/org.macosforge.xquartz.privileged_startx.plist && \|
|sudo rm -rf /opt/X11* /Library/Launch*/org.macosforge.xquartz.* /Applications/Utilities/XQuartz.app /etc/*paths.d/*XQuartz && \|
|sudo pkgutil --forget org.macosforge.xquartz.pkg && \|
|rm -rf ~/.serverauth* && rm -rf ~/.Xauthorit* && rm -rf ~/.cache && rm -rf ~/.rnd && \|
|rm -rf ~/Library/Caches/org.macosforge.xquartz.X11 && rm -rf ~/Library/Logs/X11|
Help! I'm not code savvy. Does this code apply only to XQuartz.app downloaded from macosforge.org? It's not working for me as is. Terminal responds: 'No receipt for 'org.macosforge.xquartz.pkg' found at '/'. I downloaded from xquartz.org, not Macosforge. Name of package I downloaded is just xquartz.pkg. Can I substitute org.macosforge with org.xquartz?
Sure no problem.
The fact that he forgot the package actually means it has been uninstalled.
Maybe, I'll have to reinstall it to see which directory XQuartz use inside ~/cache which I probably won't do. Anyway it's just cache files so.