Introducing permanently delete post functionality

When a post is deleted in Discourse, we perform a soft-delete. This means that post is still present in the database in case an administrator wants to recover it later. A soft-delete is not sufficient when the deleted post contains sensitive information and must be pruned from the database completely. For those situations, we are introducing the ability to permanently delete a post.

To use this feature, enable the can permanently delete setting. However, please be aware of the risks involved with this feature — as the setting name suggests, if you permanently delete a topic, post, or post revisions, there is no way to restore this content. As such, there are a few safeguards in place:

78 Likes
Admin Deleting Posts
How can I delete a topic permanently?
Permanent deletion bug
How to permanently delete a post?
Error when attempting to permanently delete as moderator
Permanent deletion: Is there a database command?
Delete topics and posts final
Copyright regarding creations with high level of creation and the right of deletion
"There was an error deleting that topic. Please contact the site's administrator"
Permanent bulk delete of old topics
Introduce a way to also permanently delete the sensitive info from the staff logs
Deleted post is still there shown as a hidden post
How to delete post permanently?
Soft-delete override?
Permanent deletion: Function not available
Re-use of `external_id` after a Topic is deleted
Deleted replies and topics - are they purged from db or do they stay forever in db?
Enable setting to allow admins to permanently delete data
How can I permanently delete a topic with multiple posts?
Deleting all posts in personal message not working
Digital Online Safety
Create list of links to all soft-deleted posts
Are there any performance or inconsistency issues when using Permanently Delete?
Permanent bulk delete of old topics
Final deletion does not work correctly
Hidden Settings on Discourse Hosted Sites
How to make an undeleteable topic?
Error during permanently deleting a post of a deleted user
Purge/clean/delete deleted topics from database
Add a warning when checking personal messages from a user public profile, as an admin
Does enabling Permanently Delete require a rebuild?
How to remove post completely?
Why is it not possible to permanently delete topics or posts?
永久删除帖子后,其中的图片及其它附件也会被删除么?