Article version:

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."

  1. On GitHub, navigate to the main page of the repository.
  2. Under your repository name, click Settings.
    Repository settings button
  3. Under "GitHub Pages", use the Branch drop-down menu and select None.
    Drop down menu to remove publishing source
  4. 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."

Ask a human

Can't find what you're looking for?

Contact us