Method-2: Deleting the Repository from GitHub Website
Step 1: Navigate to your project
https://github.com/your-github-username/Project-Name
Step 2: Go to the settings option on the top right corner like the image above, and navigate down to the danger zone
Step 3: Go and click on the delete this repository button and after which you will be prompted to make sure you are deleting and all these actions will permanently affect the repository, in the box type your-username/project-name (replace it with yours).
You may also be prompted to type in the GitHub password.
Following these steps will make sure you have completely deleted the repository from the local PC as well as the GitHub site.
How to Delete a Git Repository
GAs developers and software teams are collaborating on projects, the usability of version control systems like Git to track changes and manage codebases has increased a lot. Using Git, developers can create and maintain repositories, that store the complete history and versions of projects. However, there are situations when deleting a git repository become necessary.
In this article, we will learn the steps to delete both local and Git repositories. We will ensure that the project is completely removed from the local system’s environment. Also, we will explain the process of deleting a remote repository hosted on platforms like GitHub, GitLab.