Enable setting to allow admins to permanently delete data

As of 2.8.0.beta7: Security Release, Fast Edits, Topic Bookmarks, and more there is a hidden site setting to allow admins to permanently delete data. To enable it, you’d set the SiteSetting at the Rails console like this:

cd /var/discourse
./launcher enter app
rails c
SiteSetting.can_permanently_delete=true
exit
exit

This change takes effect immediately. No further action is necessary.

Another way to accomplish this would be to add it to app.yml in the env: section. To do that you would add in the env: section (say, under DISCOURSE_HOSTNAME)

  DISCOURSE_CAN_PERMANENTLY_DELETE: true

To have this change take effect, you need to ./launcher rebuild app to have that setting applied.

20 Likes

“Delete Data” means all the topics, posts, uploads etc, everything will be deleted from our site and it’ll be just an empty new website?


Or it’d delete ‘Data’ container or something?

It refers to this feature - Introducing permanently delete post functionality

It allows admins to hard delete posts/topics when enabled, rather than the normal soft-delete without it.

4 Likes