People with admin or maintainer permissions for a repository can unpublish a {% data variables.product.prodname_pages %} site.
fpt
ghes
ghae
*
*
*
Pages
Unpublish Pages site
Unpublishing a project site
{% data reusables.repositories.navigate-to-repo %}
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, {% ifversion fpt %}skip to step 6{% else %}your site is now unpublished and you can skip the remaining steps{% endif %}.
{% data reusables.repositories.sidebar-settings %}
{% data reusables.pages.sidebar-pages %}
5. Under "{% data variables.product.prodname_pages %}", use the Source drop-down menu and select None.
{% data reusables.pages.update_your_dns_settings %}
Unpublishing a user or organization site
{% data reusables.repositories.navigate-to-repo %}
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."
{% data reusables.pages.update_your_dns_settings %}