# Wat gebeurt er met een bericht of onderwerp als we het verwijderen?

**URL:** <https://meta.discourse.org/t/what-be-happen-to-post-or-topic-when-we-delete-it/162628>\
**Category:** Product Support\
**Created:** [1 september 2020 om 06:36 UTC](https://meta.discourse.org/t/what-be-happen-to-post-or-topic-when-we-delete-it/162628 "2020-09-01T06:36:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [2 september 2020 om 00:44 UTC](https://meta.discourse.org/t/what-be-happen-to-post-or-topic-when-we-delete-it/162628/2 "2020-09-02T00:44:49Z")

</div>

> [@nildarar](#):
>
> Will site statistics decrease after deleting the posts?  
> _For example, likes counts or the number of posts._

Yes, almost all statistics are based on non-deleted topics and posts. One exception to this is for queries that are run in the [Data Explorer](https://meta.discourse.org/t/32566?silent=true) plugin. For those queries, you need to explicitly set a `WHERE deleted_at is NULL` condition to avoid pulling in data from deleted topics and posts.

> [@nildarar](#):
>
> Is the number of deleted posts and topics owned by a user recorded somewhere?

Yes, a user’s deleted post count is recorded. The only place that I know of where it’s displayed in the user interface is when a user’s summary page is viewed by a staff user. In that case, they will see something like this:

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/9/99f80ce0e42cdf5dd1de0571815b9b4d4bb02fee.png)

> [@nildarar](#):
>
> Will all messages in the topic be deleted after the topic removal?

No, when a topic is deleted, only the first post in the topic is deleted. Unless the topic is restored, there is no way to see the remaining posts.

> [@nildarar](#):
>
> If a badge is assigned to a user because of activity in a topic, what happens to the badge if the topic is deleted?

Most of the Discourse badges run a daily revocation query to see if the badge should be removed from the user. If the topic or post that they were granted the badge for has been deleted, the badge will be revoked.

> [@nildarar](#):
>
> What effects does deleting the topic and post have on the user’s trust level?

Having deleted posts has no effect on a users trust level. Deleting posts can be very useful for keeping topics readable. A good example of that is how we deal with documentation topics. If anything in a documentation topic is unclear, readers can reply to the topic to ask for clarification. Replies to these questions can be incorporated into the topic’s first post. When that has been done, it’s best to delete the replies to prevent the topic from becoming unreadable.

> [@nildarar](#):
>
> When the administrator enters a user’s profile, the number of deleted posts of that user is listed above the profile. Will this number increase if the posts are deleted due to the deletion of another user’s topic?

The number that you see is is the actual number of deleted posts. Since deleting a topic does not delete replies to the topic, the number will not increase.

One other thing that’s useful for site staff is knowing how to search for deleted topics. That can be done by adding the `?status=deleted` query parameter to the URL for a Discourse topic list.

> [@nildarar](#):
>
> For more clarity, please answer all the questions in different stages. Soft delete, revision and meta deletion, complete deletion from the database

Complete deletion from the database is possible, but it is not recommended. Unless it’s done correctly you risk causing problems with site stats.

---

_[View the full topic](https://meta.discourse.org/t/what-be-happen-to-post-or-topic-when-we-delete-it/162628)._
