# Excluindo posts de um usuário (com grande número de posts e histórico)

**URL:** https://meta.discourse.org/t/deleting-a-users-posts-with-large-post-count-history/82439
**Category:** Support
**Created:** [7 Março , 2018 18:33 UTC](https://meta.discourse.org/t/deleting-a-users-posts-with-large-post-count-history/82439 "2018-03-07T18:33:08Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [7 Março , 2018 23:20 UTC](https://meta.discourse.org/t/deleting-a-users-posts-with-large-post-count-history/82439/2 "2018-03-07T23:20:04Z")

</div>

I think that what you’ll need to do is select all posts owned by the user and replace the post with

```
Post deleted at request of user

```

Something like

```
Post.where("id = 123").update_all(raw: "Post deleted...")

```

That’s not tested. You’d want to test it. I’m not sure if you’d need to rebake those posts or not.

Edit: I think that’d still leave the edit history, though. But, maybe only if there were an edit history.

---

_[View the full topic](https://meta.discourse.org/t/deleting-a-users-posts-with-large-post-count-history/82439)._
