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