Delete GitHub repo's Wiki
Click on the Settings button on the GitHub page of your project and uncheck Wikis.
It should disappear.
The missing bits are on GitHub as always. Combined with the usual git
-fu you can erase all data on a GitHub repo, for example destroy a wiki ACCOUNT/REPO.wiki.git
:
git clone [email protected]:ACCOUNT/REPO.wiki.git
cd REPO.wiki
git checkout --orphan empty
git rm --cached -r .
git commit --allow-empty -m 'wiki deleted'
git push origin empty:master --force
Warning! This recipe allows to really destroy all data (on any repo) on GitHub, except for what may be still cached somewhere. My test shows that even
git clone --mirror [email protected]:ACCOUNT/REPO.wiki.git
cannot bring back any trace of old data afterwards. BTW learning to understand what above does is a good exercise in learning git
;)
First, discover your repo's URL:
$ cd your-project
$ git remote -v
origin [email protected]:belden/foo.git (fetch)
origin [email protected]:belden/foo.git (push)
Clone your wiki; its URL is your project's URL, ending with 'wiki.git':
$ cd /tmp
$ git clone [email protected]:belden/foo.wiki.git foo-wiki
Cloning into 'foo-wiki'...
remote: Counting objects: 375, done.
remote: Compressing objects: 100% (159/159), done.
remote: Total 375 (delta 214), reused 375 (delta 214)
Receiving objects: 100% (375/375), 78.41 KiB, done.
Resolving deltas: 100% (214/214), done.
Now just treat it like a normal project that you want to delete files from:
$ cd foo-wiki
$ git rm *.md
$ git commit -am "remove wiki pages"
$ git push
And you're done.