Vy Do
Vy Do

Reputation: 52576

How to delete Github's wiki homepage?

Today I put my password to Github's wiki Home page. Then, I know it's a mistake.

How to remove this page? (I can remove child page, but I don't know how to delete wiki Home page)

Upvotes: 30

Views: 13207

Answers (3)

dilipkumar1007
dilipkumar1007

Reputation: 363

  1. Click on "Edit Page".
  2. Now you can see the "Delete" button to top right in red color
  3. Click on that delete button.
  4. Be careful, it will not ask yes/no confirmation

Upvotes: 0

Ankit Prajapati
Ankit Prajapati

Reputation: 1473

I faced the same issue.

I was not able to Delete Wiki's "Home" page as Delete Button was not appearing for "Home" page when I go in Edit Mode.

To Delete the Wiki's "Home" page, do the following Steps:

  1. Rename "Home" to anything else. It seems that GitHub considers "Home" to be the default page and hence the "Delete" button disappears.
  2. Click on "Edit Page". Or Navigate to Edit Mode
  3. And now you can see the "Delete" button.
  4. Delete the page and you are Done.

Upvotes: 94

Casey
Casey

Reputation: 3353

The wiki is simply a separate git repository, so you can check it out and remove files the same way you would with anything else. Simply apply .wiki to the name (so if your repository is named my_repo, clone my_repo.wiki.git instead of my_repo.git) and clone to do this.

However, that said, you should definitely change your password anyway; it is compromised.

Github provides instructions to permanently purge a repository of a file here but it is my opinion that it's not worth bothering, given that the password should never be used again now that you have exposed it. You simply cannot know who has already pulled down the information and seen it (and numerous bad actors run scripts regularly on Github specifically to harvest credentials mistakenly committed).

Upvotes: 18

Related Questions