Reboot your Mac after executing these commands to complete the cleanup.
is an open-source version of the X.Org X Window System that runs on macOS. It allows users to run applications that utilize X11 for graphical output, such as: install xquartz
If you no longer need XQuartz and want to clean up your system storage, you must delete its components manually, as dragging the app icon to the Trash will leave system configuration files behind. Reboot your Mac after executing these commands to
# Deactivate the launch agents launchctl unload /Library/LaunchAgents/org.xquartz.startx.plist sudo launchctl unload /Library/LaunchDaemons/org.xquartz.privileged_startx.plist # Remove files and directories sudo rm -rf /Applications/Utilities/XQuartz.app /usr/X11* /Library/Images/X11_icon.pdf sudo rm -rf /Library/LaunchAgents/org.xquartz.startx.plist /Library/LaunchDaemons/org.xquartz.privileged_startx.plist sudo rm -rf /private/etc/X11 /private/etc/paths.d/40-XQuartz /private/etc/manpaths.d/40-XQuartz # Clear user preferences defaults delete org.xquartz.X11 Use code with caution. you must delete its components manually