This wikiHow teaches you how to delete a repository, or repo, from your Github project. You can delete just the local copy on your computer and retain the remote repository on Github, or you can delete the entire remote repository.

Method 1
Method 1 of 2:
Deleting the Remote Repository

  1. 1
    Open Github on your computer. Open a browser and navigate to https://github.com.
    • Make sure you have the permissions to delete a repository. You must have admin permissions for the repository, or be the organization owner.[1]
  2. 2
    Click Sign In from the top right to log in to your Github account. Enter your credentials, then click Sign in.
  3. 3
    Go to the repository you wish to delete. Select one from left side of your dashboard, or search for one using the search bar in the top left.
  4. 4
    Click on the Settings tab. This is under the repository name towards the right.
    • If you do not see this tab, then you do not have permission to edit repository settings.
  5. 5
    Click Delete this repository. This is near the bottom in the Danger Zone section.
  6. 6
    Confirm the repository name. Type the name, then click I understand the consequences, delete this repository. This removes the repository.

Method 2
Method 2 of 2:
Deleting the Local Repository

  1. 1
    Search for the repository you wish to delete. Open the File Explorer or Finder on your computer. Navigate through your folders, or use the search bar to find the repository.
    • Make sure you commit or push any changes to the project before deleting the local repository. The repository won't be deleted in Github, just your computer, so you need to push any changes to the remote copy to sync them up. You can use the command git push <REMOTENAME> <BRANCHNAME> using the remote name (default is origin) and the branch name.[2] .
  2. 2
    Right-click the repository. A menu will expand.
  3. 3
    Click Delete on the menu. Alternatively, you can hit the Del button on the keyboard. This deletes the folder containing your repository from the computer.

Warnings

About This Article

KD
Written by:
Tech Specialist
This article was written by Katie Double. Katie Double is a Technology Writer and Editor for wikiHow. She has over five years of experience in technical support, IT process analysis, and quantitative research. Katie loves exploring the application of various technological tools, from data analysis and visualization to music production and performance. Though originally from Denver, Colorado, she currently resides in New Zealand. She has a BA in Psychology from the University of Colorado Boulder. This article has been viewed 3,256 times.
How helpful is this?
Co-authors: 3
Updated: March 23, 2020
Views: 3,256
Categories: Basic Computer Skills
Article SummaryX

1. Open Github on computer.
2. Open the repository you wish to delete.
3. Click Settings under the name.
4. Click Delete this repository under Danger Zone.

Did this summary help you?