People with admin permissions for a repository can unpublish a GitHub Pages site.
Unpublishing a project site
- On GitHub, navigate to the main page of the repository.
- If a
gh-pagesbranch exists in the repository, delete thegh-pagesbranch. - If the
gh-pagesbranch was your publishing source, skip to step 6. - Under your repository name, click
Settings.

- Under "GitHub Pages", use the Source drop-down menu and select None.

- 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."
Unpublishing a user or organization site
- On GitHub, navigate to the main page of the repository.
- Delete the
masterbranch, or delete the entire repository. For more information, see "Creating and deleting branches within your repository" and "Deleting a repository." - 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."

