You can unpublish your GitHub User Pages site if the content is no longer relevant or you no longer want it to be publicly available.

  1. To unpublish your User Pages site, delete either the master branch in your <username>.github.io repository, or the entire <username>.github.io repository. For more information, see "Deleting unused branches" or "Deleting a repository."

  2. If there is a custom domain enabled for the site, update your DNS settings. For more information, see "Using a custom domain with GitHub Pages."

Further reading