Delete and Restore Github repository

Delete Github repository

We can delete the Github repo, by following the below steps: Step 1: Navigate to the main page of the repository, which we want to delete. Step 2: Under the repository name, click Settings. Step 3: In the Danger Zone section, we can see the Delete this repository option, and follow the required steps to confirm the deletion process.

Delete Github repository

Restoring a deleted repository

A deleted repository can be restored within 90 days. Step 1: In the upper-right corner of any page, click the profile photo, then click Settings.

Restore Github repository

Step 2: In the "Code planning, and automation" section of the sidebar, click Repositories.

Restore Github repository

Step 3: Under "Repositories", click Deleted repositories Click on Restore, next to the repository which we want to restore..