13

I have created a project page for a repository in GitHub and later I deleted the gh-pages branch to delete the page. But now I see github-pages Active under the Environments section in the home page of my repository.

enter image description here

I have no idea what that section is and how to remove it. When I click on the Environments, I am taken to the page with following; View deployment button takes me to a broken 404 github page since I have deleted the page I created. enter image description here

3 Answers 3

18

Check in Settings>Environments Or https://github.com/user/repo-name/settings/environments

Where "user" should be your username and "repo-name" the repo name

It will show a icon to delete github-pages

6

If you are using Chrome then try to clear browsing data for the last 24 hours and restart. This worked for me.

(Forced to post this as an answer instead of a comment due to lacking reputation points)

1
  • also might be worthwhile trying the ctrl-f5 trick to force a "reload not from cache" on the page
    – Jad
    Commented Jan 15, 2021 at 9:16
1

You can either hide it (if it's enough) by excluding it from the homepage by clicking on the cog icon above the environments, next to About and unchecking Environments (and all else you do not want there)

enter image description here

Or you can completly remove github pages by following steps here

2
  • 4
    I have already deleted GitHub page by deleting gh-pages branch. It's also reflected under 'GitHub Pages' of settings as it's now showing 'None' under 'Source'. But still the Environments has the github-pages as Active and view deployment button leads to a 404 page.
    – darthV
    Commented Aug 4, 2020 at 10:28
  • I have also the same problem and solution proposed by dylan works for me.
    – dudung
    Commented Oct 22, 2022 at 11:53

Not the answer you're looking for? Browse other questions tagged or ask your own question.