# How to regenerate FAQ and TOS pages?

**URL:** https://meta.discourse.org/t/how-to-regenerate-faq-and-tos-pages/110625
**Category:** Support
**Created:** [4 במרץ,‏ 2019,‏ 2:43pm UTC](https://meta.discourse.org/t/how-to-regenerate-faq-and-tos-pages/110625 "2019-03-04T14:43:15Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [4 במרץ,‏ 2019,‏ 3:11pm UTC](https://meta.discourse.org/t/how-to-regenerate-faq-and-tos-pages/110625/2 "2019-03-04T15:11:46Z")

</div>

Interesting. How did you manage to delete those topics? You shouldn’t be allowed to delete them in the UI.

First, let’s see if the topics are really gone.

```plaintext
./launcher enter app
rails c

```

```ruby
Topic.with_deleted.exists?(SiteSetting.guidelines_topic_id)
Topic.with_deleted.exists?(SiteSetting.tos_topic_id)

```

If the topics are really gone, create two new topics in the Staff category and assign the topic ids in the rails console to the site settings.

```ruby
SiteSetting.guidelines_topic_id = 4711 # replace with topic id
SiteSetting.tos_topic_id = 4712 # replace with topic id

SiteSetting.default_locale

```

And then replace the content of those topics by using the “Manual Update” described in [Update seeded categories and topics](https://meta.discourse.org/t/update-seeded-categories-and-topics/111963)

---

_[View the full topic](https://meta.discourse.org/t/how-to-regenerate-faq-and-tos-pages/110625)._
