Skip to main content

Unpublishing a GitHub Pages site

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

Who can use this feature

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

GitHub Pages 适用于具有 GitHub Free 和组织的 GitHub Free 的公共仓库,以及具有 GitHub Pro、GitHub Team、GitHub Enterprise Cloud 和 GitHub Enterprise Server 的公共和私有仓库。 有关详细信息,请参阅“GitHub 的产品”。

When you unpublish your site, the site will no longer be available. Any existing repository settings or content will not be affected.

  1. On GitHub.com, navigate to the main page of the repository.

  2. Under GitHub Pages, next to the Your site is live at message, click .

  3. In the menu that appears, select Unpublish site.

    Drop down menu to unpublish site