# Удаление всех сообщений от пользователя в категории

**URL:** https://meta.discourse.org/t/deleting-all-messages-from-a-user-in-a-category/204899
**Category:** Support
**Created:** [30.Сентябрь.2021 18:48:34 UTC](https://meta.discourse.org/t/deleting-all-messages-from-a-user-in-a-category/204899 "2021-09-30T18:48:34Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [03.Октябрь.2021 06:59:02 UTC](https://meta.discourse.org/t/deleting-all-messages-from-a-user-in-a-category/204899/2 "2021-10-03T06:59:02Z")

</div>

У меня нет личного опыта работы с этим, но, насколько я знаю, через API можно выполнить «мягкое» удаление —

> [@Reverse engineer the Discourse API](https://meta.discourse.org/t/how-to-reverse-engineer-the-discourse-api/20576):
>
> Discourse is backed by a complete JSON api. Anything you can do on the site you can also do using the JSON api. The API is documented at [docs.discourse.org](https://docs.discourse.org). You can also use the [discourse\_api](https://github.com/discourse/discourse_api) Ruby gem as a client library. However, not every endpoint is documented. To determine how to do something with the JSON API here are some steps you can follow. Example: recategorize a topic. Go to a topic and start editing a category: Open Chrome dev tools, switch to the Network tab, select …

> [@Iceman](#):
>
> (Или способ через консоль, просто не хочу «попытаться» и сломать базу данных 😛 )

Также есть несколько тем о «жёстком» удалении, если поискать по запросу «rails delete post».

Если вы сможете предоставить немного больше деталей о том, чего именно вы хотите добиться, люди могут дать более конкретные советы.

---

_[View the full topic](https://meta.discourse.org/t/deleting-all-messages-from-a-user-in-a-category/204899)._
