The Wayback Machine - https://web.archive.org./web/20201101112741/https://docs.github.com/en/free-pro-team@latest/github/working-with-github-pages/unpublishing-a-github-pages-site

Unpublishing a GitHub Pages site

You can unpublish your GitHub Pages site so that the site is no longer available to the public.

People with admin or maintainer permissions for a repository can unpublish a GitHub Pages site.

GitHub Pages is available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see "GitHub's products."

In this article

Did this doc help you?

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

Or, learn how to contribute.

Unpublishing a project site

  1. On GitHub, navigate to the main page of the repository.
  2. If a gh-pages branch exists in the repository, delete the gh-pages branch. For more information, see "Creating and deleting branches within your repository."
  3. If the gh-pages branch was your publishing source, skip to step 6.
  4. Under your repository name, click Settings.
    Repository settings button
  5. Under "GitHub Pages", use the Source drop-down menu and select None.
    Drop down menu to select a publishing source
  6. If there's a custom domain enabled for your site, to avoid a domain takeover, update your DNS settings. For more information, see "Configuring a custom domain for your GitHub Pages site."

Unpublishing a user or organization site

  1. On GitHub, navigate to the main page of the repository.
  2. Delete the branch that you're using as a publishing source, or delete the entire repository. For more information, see "Creating and deleting branches within your repository" and "Deleting a repository."
  3. If there's a custom domain enabled for your site, to avoid a domain takeover, update your DNS settings. For more information, see "Configuring a custom domain for your GitHub Pages site."

Did this doc help you?

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

Or, learn how to contribute.