# 批量删除选定用户的话题/内容

**URL:** https://meta.discourse.org/t/bulk-delete-topics-content-from-select-users/147014
**Category:** Support
**Created:** [2020年四月6日 16:19 UTC](https://meta.discourse.org/t/bulk-delete-topics-content-from-select-users/147014 "2020-04-06T16:19:54Z")
**Posts on this page:** 1
**Showing post:** 12

<div class="post-metadata">

### Author: ![christian\_01](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/christian_01/32/162392_2.png) [@christian\_01](https://meta.discourse.org/u/christian_01)
#### Post date: [2020年四月7日 16:35 UTC](https://meta.discourse.org/t/bulk-delete-topics-content-from-select-users/147014/12 "2020-04-07T16:35:44Z")

</div>

没有错误提示。它只是停止并显示“删除帖子时出现问题”。

我有大量用户和帖子需要删除，难道没有更好的方法吗？

我原本希望有人能回复这个问题：

> [@Bulk delete users that match an email pattern](https://meta.discourse.org/t/bulk-delete-users-that-match-an-email-pattern/147012):
>
> I would like to bulk delete users that match an email pattern such as : \*.xyz \*.fun etc… I tried this as of now : User.find(UserEmail.where("email like '%.fun'").pluck(:user\_id)).count. But I can’t use the destroy\_all function after a .where() … Could you please help ? Thanks a lot.

---

_[View the full topic](https://meta.discourse.org/t/bulk-delete-topics-content-from-select-users/147014)._
