Mac File System Clean Up

05-06-2022

Overview

General Tips

  • Under no circumstances should you try to delete or touch anything in the /System or /usr/bin/python folders. This can cause your macOS to malfunction.
  • to use the finder and jump to a directory, use Cmd + Shift + G

OS Python

Steps to remove

  • Step 1: Manually remove Python 2.7 folder from Applications
  • Step 2: Remove the Python 2.7 framework from /Library through the terminal:
sudo rm -rf /Library/Frameworks/Python.framework
  • Step 3: Clear python files from /usr/local/bin:
sudo rm -rf /usr/local/bin/python
  • Step 4: Clear symbolic links to deleted Python files. Run brew doctor then brew cleanup.

  • Also, there may be python files in User/username/Library/Python/

Understanding different bin folders