Enable the hidden can_permanently_delete site setting

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

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)


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


A clarification on this feature. If a post is permanently deleted, what happens to other posts which have quoted the deleted post? Would it display the quoted post?

1 Like

If those posts have copied the contents of the post in question, then I’m fairly certain that this isn’t going to find them and edit them. But I haven’t tested or looked at the code.

This topic was intended to be more about how to enable the feature than explaining what it does, but perhaps that was short-sighted.

1 Like