Self Hosted Server - Restart DB from scratch


#1

What’s the best way to start over and erase all data on a self hosted server?
Can I just drop the 2 mongo databases and thinger will recreate them?

[EDIT]

Seems that yes!

  1. Stop the thinger service
    $ sudo service snap.thinger-maker-server.thingerd stop

  2. Open the mongo shell
    $ mongo

  3. drop dbs

> use thinger_data
> db.dropDatabase()
> use thinger
> db.dropDatabase()
> exit
  1. Restart thinger service
    $ sudo service snap.thinger-maker-server.thingerd restart