# Github Deployments Extension not deleting page

**URL:** <https://community.auth0.com/t/github-deployments-extension-not-deleting-page/19123>\
**Category:** Get Help\
**Tags:** extension\
**Created:** [December 16, 2018, 4:35pm UTC](https://community.auth0.com/t/github-deployments-extension-not-deleting-page/19123 "2018-12-16T16:35:21Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![user792](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@user792](https://community.auth0.com/u/user792)\
**Post date:** [December 16, 2018, 4:35pm UTC](https://community.auth0.com/t/github-deployments-extension-not-deleting-page/19123/1 "2018-12-16T16:35:21Z")

</div>

I deleted my error page in the connected Github repository and it did not delete once it has been deployed.

Extension version 2.4

---

<div class="post-metadata">

**Author:** ![nicolas\_sabena](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nicolas_sabena/32/6064_2.png) [@nicolas\_sabena](https://community.auth0.com/u/nicolas_sabena)\
**Post date:** [December 16, 2018, 7:34pm UTC](https://community.auth0.com/t/github-deployments-extension-not-deleting-page/19123/2 "2018-12-16T19:34:40Z")

</div>

The deployment extensions will not delete a hosted page, but you can enable or disable it by using the corresponding `.json` file. For example, you need a `error_page.json` file with the following content:

```auto
{
  "enabled": false
}

```

Take a look at [https://auth0.com/docs/extensions/github-deploy#deploy-hosted-pages](https://auth0.com/docs/extensions/github-deploy#deploy-hosted-pages) for more info.

---

<div class="post-metadata">

**Author:** ![user792](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@user792](https://community.auth0.com/u/user792)\
**Post date:** [December 16, 2018, 8:06pm UTC](https://community.auth0.com/t/github-deployments-extension-not-deleting-page/19123/3 "2018-12-16T20:06:14Z")

</div>

I didn’t mean to delete it – it was to return it to the generic error page (and delete the error\_page.html) file.

I tried everything from making a new repository, making it as false in the .json file, and setting the error page to the redirect option. This issue occurred when I updated the extension to 2.4.

---

<div class="post-metadata">

**Author:** ![nicolas\_sabena](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nicolas_sabena/32/6064_2.png) [@nicolas\_sabena](https://community.auth0.com/u/nicolas_sabena)\
**Post date:** [December 16, 2018, 11:23pm UTC](https://community.auth0.com/t/github-deployments-extension-not-deleting-page/19123/4 "2018-12-16T23:23:13Z")

</div>

Do you get any logs that could help in the troubleshooting?

---

<div class="post-metadata">

**Author:** ![user792](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@user792](https://community.auth0.com/u/user792)\
**Post date:** [December 17, 2018, 2:46am UTC](https://community.auth0.com/t/github-deployments-extension-not-deleting-page/19123/5 "2018-12-17T02:46:10Z")

</div>

It showed this once I deleted the error\_page.html file and deployed it:

```
{
 "pages": {
  "deleted": 0,
  "created": 0,
  "updated": 2
 }
}

```

It then shows 1 updated page in later deployments (with the error page still showing up as it was on Github).

---

<div class="post-metadata">

**Author:** ![user792](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@user792](https://community.auth0.com/u/user792)\
**Post date:** [December 23, 2018, 3:37pm UTC](https://community.auth0.com/t/github-deployments-extension-not-deleting-page/19123/6 "2018-12-23T15:37:58Z")

</div>

I tested it out on a brand new tenant and the same error occurred.

The log shows that the deployment does not recognize that the page has been disabled (or removed) and returned to the default one that Auth0 provides (error page).

---

<div class="post-metadata">

**Author:** ![user792](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@user792](https://community.auth0.com/u/user792)\
**Post date:** [January 15, 2019, 10:50pm UTC](https://community.auth0.com/t/github-deployments-extension-not-deleting-page/19123/7 "2019-01-15T22:50:31Z")

</div>

This issue seems to be fixed

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [August 29, 2019, 9:18am UTC](https://community.auth0.com/t/github-deployments-extension-not-deleting-page/19123/8 "2019-08-29T09:18:39Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
