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
Delete topics and posts final
Permanent deletion: Is there a database command?
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
Error during permanently deleting a post of a deleted user
Purge/clean/delete deleted topics from database
Final deletion does not work correctly
Permanent bulk delete of old topics
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?
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
Deleted replies and topics - are they purged from db or do they stay forever in db?
How to make an undeleteable topic?
How can I permanently delete a topic with multiple posts?