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

A post was split to a new topic: Introduce a way to also permanently delete the sensitive info from the staff logs

14 posts were split to a new topic: Where is the option to permanently delete?

A small update on the functionality of this feature…

You can now also permanently delete post revisions when this setting is enabled. :partying_face:

This can be done from the Revision History by first hiding the revision, and then the option to ‘Delete revisions’ appears:

16 Likes

We have updated this feature to make the can permanently delete setting visible to admins. This means you no longer need to contact the Discourse team or use the console to manage this setting.

However, we have added a few additional safeguards to make sure admins are completely aware of the risks of this feature:

Note: If the same admin is performing the soft delete and permanent delete, they still must wait 5 minutes between these actions.

12 Likes