# Deleted published page (topic) slug remains in use

**URL:** https://meta.discourse.org/t/deleted-published-page-topic-slug-remains-in-use/182566
**Category:** Bug
**Created:** [March 8, 2021, 10:40pm UTC](https://meta.discourse.org/t/deleted-published-page-topic-slug-remains-in-use/182566 "2021-03-08T22:40:47Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![reclaimedpress](https://avatars.discourse-cdn.com/v4/letter/r/91b2a8/32.png) [@reclaimedpress](https://meta.discourse.org/u/reclaimedpress)
#### Post date: [March 8, 2021, 10:40pm UTC](https://meta.discourse.org/t/deleted-published-page-topic-slug-remains-in-use/182566/1 "2021-03-08T22:40:47Z")

</div>

I did the following:

- enabled native page publishing in settings (enable page publishing)
- created a topic and published as a page at slug ‘about-us’
- deleted topic while exploring other page-publishing options
- when to re-create the published page at ‘about-us’ via native page publishing (first thing above)
- presented with " Sorry, you can’t publish this page. Slug has already been taken. " error despite the fact the page/topic in question has been deleted and is no longer accessible to anyone (including myself, the admin)

Any ideas on how to fix this, or is this a bug?

Thanks!

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [March 9, 2021, 9:34am UTC](https://meta.discourse.org/t/deleted-published-page-topic-slug-remains-in-use/182566/2 "2021-03-09T09:34:52Z")

</div>

Can we repro this @tshenry ?

---

<div class="post-metadata">

### Author: ![tshenry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tshenry/32/119495_2.png) [@tshenry](https://meta.discourse.org/u/tshenry)
#### Post date: [March 9, 2021, 7:12pm UTC](https://meta.discourse.org/t/deleted-published-page-topic-slug-remains-in-use/182566/4 "2021-03-09T19:12:07Z")

</div>

Yep, I can repro on Try following the steps in the OP. Currently it appears you need to un-publish the published page **before** deleting the topic. Ideally, deleting the topic would automatically un-publish the page and free up the slug.

> [@reclaimedpress](#):
>
> Any ideas on how to fix this, or is this a bug?

I’m pretty sure this is something we’ll want to improve, but the current workaround would be to find the deleted topic (you can append `?status=deleted` to the URL of a topic list to find deleted topics), restore it, un-publish the post, then re-delete the topic.

---

<div class="post-metadata">

### Author: ![reclaimedpress](https://avatars.discourse-cdn.com/v4/letter/r/91b2a8/32.png) [@reclaimedpress](https://meta.discourse.org/u/reclaimedpress)
#### Post date: [March 9, 2021, 7:43pm UTC](https://meta.discourse.org/t/deleted-published-page-topic-slug-remains-in-use/182566/5 "2021-03-09T19:43:05Z")

</div>

Thank you, that did it!

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [March 9, 2021, 7:43pm UTC](https://meta.discourse.org/t/deleted-published-page-topic-slug-remains-in-use/182566/6 "2021-03-09T19:43:32Z")

</div>

aha we should assign this bug @eviltrout!

---

<div class="post-metadata">

### Author: ![Roman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roman/32/157504_2.png) [@Roman](https://meta.discourse.org/u/Roman)
#### Post date: [March 11, 2021, 2:39pm UTC](https://meta.discourse.org/t/deleted-published-page-topic-slug-remains-in-use/182566/9 "2021-03-11T14:39:00Z")

</div>

Fixed here:

[https://github.com/discourse/discourse/pull/12358](https://github.com/discourse/discourse/pull/12358)

Deleting a topic will also delete the associated published page, freeing up the slug.

---

<div class="post-metadata">

### Author: ![Roman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roman/32/157504_2.png) [@Roman](https://meta.discourse.org/u/Roman)
#### Post date: [March 13, 2021, 8:00am UTC](https://meta.discourse.org/t/deleted-published-page-topic-slug-remains-in-use/182566/10 "2021-03-13T08:00:20Z")

</div>

This topic was automatically closed after 41 hours. New replies are no longer allowed.
