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