# Resetting Discourse Instance

**URL:** <https://meta.discourse.org/t/resetting-discourse-instance/128593>\
**Category:** Product Support\
**Created:** [September 14, 2019, 6:39pm UTC](https://meta.discourse.org/t/resetting-discourse-instance/128593 "2019-09-14T18:39:30Z")\
**Posts on this page:** 6\
**Page:** 1

## AI-generated summary

[Earlie](/t/-/128593/1) inquired about resetting a Discourse instance installed on Digital Ocean to a clean state without performing a fresh installation. [gerhard](/t/-/128593/2) provided a solution involving Docker commands to stop the app, remove the standalone shared directory, and rebuild the container, noting that this process deletes all data including the database.

Following this, [Earlie](/t/-/128593/3) asked for instructions on changing the admin email address registered during the initial installation via the command line. [merefield](/t/-/128593/4) suggested using the Rails console for such administrative tasks and shared a relevant link to a Meta Discourse topic regarding account activation issues. [Earlie](/t/-/128593/5) thanked the community for their prompt assistance.

<div class="post-metadata">

**Author:** ![Earlie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/earlie/32/157371_2.png) [@Earlie](https://meta.discourse.org/u/Earlie)\
**Post date:** [September 14, 2019, 6:39pm UTC](https://meta.discourse.org/t/resetting-discourse-instance/128593/1 "2019-09-14T18:39:30Z")

</div>

Hello,  
I am to know if there is an option to reset a discourse instance (currently installed at Digital Ocean). I need to have a clean and standalone install of discourse without having to get a fresh install again altogether.

Many Thanks

---

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [September 14, 2019, 6:47pm UTC](https://meta.discourse.org/t/resetting-discourse-instance/128593/2 "2019-09-14T18:47:05Z")

</div>

This will delete all data including the database and recreate the Docker container.

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

```

---

<div class="post-metadata">

**Author:** ![Earlie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/earlie/32/157371_2.png) [@Earlie](https://meta.discourse.org/u/Earlie)\
**Post date:** [September 14, 2019, 7:01pm UTC](https://meta.discourse.org/t/resetting-discourse-instance/128593/3 "2019-09-14T19:01:33Z")

</div>

Thank you so much sincerely for caring so much to answer my query!  
Would you also share some insight on as how to change the admin email id registered while installing Discourse instance via command line?

---

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [September 14, 2019, 10:10pm UTC](https://meta.discourse.org/t/resetting-discourse-instance/128593/4 "2019-09-14T22:10:16Z")

</div>

This might help you. You can do a lot of this kind of thing with the Rails console:

[https://meta.discourse.org/t/account-stuck-on-we-sent-an-activation-mail-to-new-wrong-email/69946/2?u=merefield](https://meta.discourse.org/t/account-stuck-on-we-sent-an-activation-mail-to-new-wrong-email/69946/2)

---

<div class="post-metadata">

**Author:** ![Earlie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/earlie/32/157371_2.png) [@Earlie](https://meta.discourse.org/u/Earlie)\
**Post date:** [September 15, 2019, 3:53am UTC](https://meta.discourse.org/t/resetting-discourse-instance/128593/5 "2019-09-15T03:53:16Z")

</div>

Thank you for your prompt response to the question.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [October 15, 2019, 3:53am UTC](https://meta.discourse.org/t/resetting-discourse-instance/128593/6 "2019-10-15T03:53:21Z")

</div>

Closed on October 15, 2019, 3:53am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
