Cleaning up your GitHub profile
Tags: github, react, git
Published: 2020-04-09 13:37:54

---
title: Cleaning up your GitHub profile
published: true
description: A nightmare turned into a fun little open-source project. 
tags: GitHub, React, Git
cover_image: https://raw.githubusercontent.com/MehediH/GitCleanup/master/public/assets/cover.png
---

It was a Wednesday afternoon, and I was busy re-organizing somethings on my portfolio. I also wanted to quickly clean-up my GitHub profile at the same time, as I had lots of repositories for personal projects that I never actually started working on or repositories that I created while following a tutorial, etc. Point is, my GitHub was full of repositories I didn't need, and they were just taking up space unnecessarily. 

So I decided to get rid of those and delete the repositories one-by-one from the GitHub website. The process was time-consuming because I had to individually delete the repositories, and GitHub requires you to confirm the repository name before you can delete it. All in all, the process felt like something that can be easily automated.

Like one does, I did a quick Google search and found a tool that supposedly lets you bulk delete repositories. The interface of the app was incredibly confusing, and it ended up deleting repositories that I actually wanted to keep. So what ended up happening is that the app deleted the repositories I wanted to keep, and kept the ones I wanted to get rid of.

🤬💀

I had lost the repository for my biggest project, and because it was part of a forked network, you can't simply recover the repository from your account. I had to reach out to GitHub Support to get the repo back, but even then, I had lost all the years of releases I published on that repo. Long story short, my day quickly turned into a massive nightmare.

---

And then it hit me: there has to be a better and reliable way of doing this. With the free time I had because of lockdown, I decided to make my own app that lets you bulk delete repositories. My focus with this app was to build an interface that is incredibly simple to understand and use.

I started looking into the GitHub API to get started, and the endpoint for deleting repositories is pretty simple. So I quickly started making a React app that lets you view your repositories separated by Public and Private repositories. From there, you can select repositories you want to delete, and delete them all at once with a single click. The interface of the app, once again, is really simple and lets you clean-up your GitHub account with just a few clicks and without any of the hassle. There's a search feature to search for repositories on your profile, and there's a dark/light theme as well.

Meet [GitCleanup: gitcleanup.com.](https://www.gitcleanup.com/)

[![GitCleanup](https://raw.githubusercontent.com/MehediH/GitCleanup/master/readmepic.png)](https://www.gitcleanup.com)



The app is completely [open-source on GitHub](https://github.com/MehediH/GitCleanup), and you can even deploy your own instance on Heroku:

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/MehediH/GitCleanup)


This was a fun little project for me, and I hope it's useful to the community ☺️