# Full reset: re-initializing

**URL:** https://meta.discourse.org/t/full-reset-re-initializing/56554
**Category:** Self-hosting
**Created:** [January 29, 2017, 7:33pm UTC](https://meta.discourse.org/t/full-reset-re-initializing/56554 "2017-01-29T19:33:53Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![David\_Collantes](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david_collantes/32/87919_2.png) [@David\_Collantes](https://meta.discourse.org/u/David_Collantes)
#### Post date: [January 29, 2017, 7:33pm UTC](https://meta.discourse.org/t/full-reset-re-initializing/56554/1 "2017-01-29T19:33:53Z")

</div>

I have run a test install for a while. I am now ready to do it for good. Is there a way to reset everything, and run the initial setup (as a new install) without wiping the container? Thanks!

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [January 29, 2017, 8:31pm UTC](https://meta.discourse.org/t/full-reset-re-initializing/56554/2 "2017-01-29T20:31:22Z")

</div>

Why do you want to avoid wiping the container? If you want to wipe everything except `app.yml` and return to a blank Discourse install and its set-up wizard,

```bash
cd /var/discourse
./launcher stop app
rm -rf shared/standalone/
./launcher rebuild app

```

should do the job in less than 10 minutes.

> ⚠ Running the commands above will wipe all data of the Discourse instance, including backups.

---

<div class="post-metadata">

### Author: ![David\_Collantes](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david_collantes/32/87919_2.png) [@David\_Collantes](https://meta.discourse.org/u/David_Collantes)
#### Post date: [January 29, 2017, 8:44pm UTC](https://meta.discourse.org/t/full-reset-re-initializing/56554/3 "2017-01-29T20:44:54Z")

</div>

Thanks for the reply. Will this allow me to set a new hostname as well? It is a full reinitialising, yes?

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [January 29, 2017, 8:46pm UTC](https://meta.discourse.org/t/full-reset-re-initializing/56554/4 "2017-01-29T20:46:05Z")

</div>

If you want to update the hostname, update `app.yml` before running the `rebuild` command.

---

<div class="post-metadata">

### Author: ![denvergeeks](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/denvergeeks/32/327671_2.png) [@denvergeeks](https://meta.discourse.org/u/denvergeeks)
#### Post date: [May 31, 2023, 10:03pm UTC](https://meta.discourse.org/t/full-reset-re-initializing/56554/5 "2023-05-31T22:03:02Z")

</div>

Thank you @fefrei ! As of 2023, this procedure still works perfectly to wipe delete all of the posts and data and users and reset or re-initialize the Discourse instance.

---

<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: [June 8, 2024, 12:36pm UTC](https://meta.discourse.org/t/full-reset-re-initializing/56554/6 "2024-06-08T12:36:41Z")

</div>

This topic was automatically closed after 2686 days. New replies are no longer allowed.
