# Gli argomenti non vengono eliminati

**URL:** https://meta.discourse.org/t/topics-are-not-deleted/242694
**Category:** Support
**Created:** [23 Ottobre 2022, 5:47am UTC](https://meta.discourse.org/t/topics-are-not-deleted/242694 "2022-10-23T05:47:14Z")
**Posts on this page:** 1
**Showing post:** 4

<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: [23 Ottobre 2022, 9:05am UTC](https://meta.discourse.org/t/topics-are-not-deleted/242694/4 "2022-10-23T09:05:24Z")

</div>

Per quanto ne so, i task di eliminazione di rake non eliminano i dati dal database, li eliminano solo in modo “soft”. Per un’eliminazione “hard” dovresti accedere alla console di rails.

Le mie competenze in rails non sono eccezionali, quindi esito a offrire consigli specifici, soprattutto per un lavoro di questa portata 🙂, ma ci sono alcuni consigli esistenti che potresti usare per ricercare ciò che ti serve. Ad esempio:

> [@How to delete thousands of Personal Messages?](https://meta.discourse.org/t/how-to-deleting-thousands-of-private-message/162747/7?u=jammydodger):
>
> Revisiting this old topic, since none of the answers are 100% correct. The rake task rake destroy:private\_messages does not hard delete all private messages, it soft deletes them. They can still be seen by an admin and they can be recovered. The Rails code Topic.where(archetype: 'private\_message').where("user\_id \> 0").destroy\_all destroys the topics, but not the actual messages. They are still in the database and can be viewed using for instance the [data explorer](https://meta.discourse.org/t/32566?silent=true) plugin. This code will perma…

---

_[View the full topic](https://meta.discourse.org/t/topics-are-not-deleted/242694)._
