Unpublishing a project site
- On GitHub Enterprise, navigate to the main page of the repository.
- If a
gh-pagesbranch exists in the repository, delete thegh-pagesbranch. - If the
gh-pagesbranch was your publishing source, your site is now unpublished and you can skip the remaining steps. - Under your repository name, click
Settings.

- Under "GitHub Pages", use the Source drop-down menu and select None.

Unpublishing a user or organization site
- On GitHub Enterprise, navigate to the main page of the repository.
- Delete the
masterbranch, or delete the entire repository. For more information, see "Creating and deleting branches within your repository" and "Deleting a repository."