You can unpublish your GitHub Pages site so that your current deployment is removed and the site is no longer available. This is different from deleting the site.
Who can use this feature?
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.
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 Deleting a GitHub Pages site.
On GitHub, navigate to the main page of the repository.
Under GitHub Pages, next to the Your site is live at message, click .
In the menu that appears, select Unpublish site.
Screenshot of GitHub Pages settings with the URL of a live site. On the right under a kebab icon, the "Unpublish site" option is outlined in orange.