1
0
mirror of synced 2025-12-19 18:10:59 -05:00
Files
docs/content/pages/getting-started-with-github-pages/unpublishing-a-github-pages-site.md

2.5 KiB

title, intro, redirect_from, product, permissions, versions, topics, shortTitle
title intro redirect_from product permissions versions topics shortTitle
Unpublishing a GitHub Pages site You can unpublish your {% data variables.product.prodname_pages %} site so that your current deployment is removed and the site is no longer available. This is different from deleting the site.
/articles/how-do-i-unpublish-a-project-page
/articles/unpublishing-a-project-page
/articles/unpublishing-a-project-pages-site
/articles/unpublishing-a-user-pages-site
/articles/unpublishing-a-github-pages-site
/github/working-with-github-pages/unpublishing-a-github-pages-site
{% data reusables.gated-features.pages %} People with admin or maintainer permissions for a repository can unpublish a {% data variables.product.prodname_pages %} site.
fpt ghes ghec
* * *
Pages
Unpublish Pages site

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

Unpublishing a site does not permanently delete the site. For information on deleting a site, see AUTOTITLE.

{% data reusables.repositories.navigate-to-repo %}

  1. Under {% data variables.product.prodname_pages %}, next to the Your site is live at message, click {% octicon "kebab-horizontal" aria-label="the horizontal kebab icon" %}.
  2. In the menu that appears, select Unpublish site. Screenshot of {% data variables.product.prodname_pages %} settings with the URL of a live site. On the right under a kebab icon, the "Unpublish site" option is outlined in orange.

Re-enabling a site that has been unpublished

Unpublishing your {% data variables.product.prodname_pages %} site removes your current deployment. To make your site available again, you can create a new deployment.

Re-enable using {% data variables.product.prodname_actions %}

A successful workflow run in the repository for your site will create a new deployment. Trigger a workflow run to redeploy your site.

Re-enabling your site when publishing from a branch

  1. Configure your publishing source to publish from a branch of your choosing. For more information, see AUTOTITLE.
  2. Commit to your publishing source to create a new deployment.