Comprehensive Guide: How to Delete All Existing GitHub Accounts on Mac

Shravan Meena
2 min readMay 28, 2023

--

To delete all existing GitHub accounts on your Mac, you need to remove the associated SSH keys and configuration files. Here’s a step-by-step guide:

Step 1: Remove SSH keys

  1. Open Terminal on your Mac.
  2. Navigate to the SSH directory by running the following command and pressing Enter
cd ~/.ssh

3. List the SSH key files in the directory by running the command:

ls

4. Identify the SSH key files associated with your GitHub accounts. Typically, they have names like id_rsa and id_rsa.pub.

5. To remove a specific SSH key file, use the following command:

rm <key_file>

Replace <key_file> with the filename of the SSH key you want to delete.

  1. Repeat step 5 for each SSH key file associated with your GitHub accounts.

Step 2: Remove SSH configuration file

  1. Open Terminal on your Mac.
  2. Navigate to the SSH directory by running the following command and pressing Enter:
cd ~/.ssh

3. Delete the SSH configuration file by running the command:

rm config

By following these steps, you can remove all existing GitHub accounts from your Mac, including the associated SSH keys and configuration files. It’s important to note that deleting the SSH keys and configuration files will also prevent you from accessing those GitHub accounts on your Mac in the future. If you plan to continue using any of the accounts, make sure to back up the SSH keys and configuration files before deleting them.

Note:
Beginner’s Guide: How to Manage Multiple GitHub Accounts on Mac⚡️

https://medium.com/@shravanmeena/beginners-guide-how-to-manage-multiple-github-accounts-on-mac-9d52f0ee5864

--

--

Shravan Meena
Shravan Meena

Written by Shravan Meena

Writing code is my passion. I firmly believe in the transformative and enhancing power of programming, and how it can improve the lives of those around world.

No responses yet