# Question about PostRevision.destroy\_all

**URL:** <https://meta.discourse.org/t/question-about-postrevision-destroy-all/51151>\
**Category:** Product Support\
**Created:** [5. Oktober 2016 um 23:06 UTC](https://meta.discourse.org/t/question-about-postrevision-destroy-all/51151 "2016-10-05T23:06:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [6. Oktober 2016 um 00:11 UTC](https://meta.discourse.org/t/question-about-postrevision-destroy-all/51151/2 "2016-10-06T00:11:40Z")

</div>

I’m sorry if this comes across as being harsh, but IIRC I did let you know that many tables had foreign keys that referenced other tables and deleting stuff from the database was not an easy thing to do and hence not a good idea.

It might be a bit different if table schemas had “ON DELETE CASCADE” but they don’t because _database size is not a problem_

I also suggested you become familiar with the database tables, but apparently you have not yet done so.

If you go ahead and do things that you were strongly advised to **not** do by forum members including devs and those that wrote Discourse and would know better than anyone, you can at best expect to have “llttle quirks” like this happen and at worse trash the entire database.

Anyway what you need to do now is restore your latest backup.

---

_[View the full topic](https://meta.discourse.org/t/question-about-postrevision-destroy-all/51151)._
