# כיצד למחוק הכל מהפורום שלי ולהשאיר רק את המשתמשים?

**URL:** <https://meta.discourse.org/t/how-to-delete-everything-from-my-forum-and-just-leave-the-users/248083>\
**Category:** Product Support\
**Created:** [7 בדצמבר,‏ 2022,‏ 2:25am UTC](https://meta.discourse.org/t/how-to-delete-everything-from-my-forum-and-just-leave-the-users/248083 "2022-12-07T02:25:27Z")\
**Posts on this page:** 1\
**Showing post:** 22

<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:** [8 בדצמבר,‏ 2022,‏ 2:58pm UTC](https://meta.discourse.org/t/how-to-delete-everything-from-my-forum-and-just-leave-the-users/248083/22 "2022-12-08T14:58:23Z")

</div>

> [@Canapin](#):
>
> there is no easy way to do that and I can only think that trying could easily lead to a broken forum.

That’s true. But if you want to live dangerously, you can try this:

```plaintext
./launcher enter app
discourse backup
rails c
Topic.where("user_id > 1").destroy_all
Upload.where("user_id > 1").destroy_all
exit
exit

```

I think that deleting topics should delete posts, but you could also add a

```
 Post.where("user_id > 0").destroy_all

```

The `> 1` will leave topics created by the first user. If you want to delete those as well, change it to `> 0`,which will leave topics created by `@system`. I think you’ll be very sorry if you delete those.

That makes a backup in case it destroys everything.

This is almost certainly a bad idea, but it’s what you asked for.

---

_[View the full topic](https://meta.discourse.org/t/how-to-delete-everything-from-my-forum-and-just-leave-the-users/248083)._
