How to regenerate FAQ and TOS pages?

Thank you so much @gerhard. Very helpful as always.
As soon as I get at a computer I’ll check this out.

We had a failed migration and wanted to keep discourse settings while deleting the migrated topics/categories. And because we had a “trash” folder with about 70k topics of trash, all written by “system”, we had to forcefully clear from the DB all topics created.

Is this the command for the “/privacy” page?

SiteSetting.privacy_topic_id = 4712 # replace with topic id

Thank you.