SignOut with ngRx and PouchDb

I have a signout action dispatched which deletes my local Dbs and clears local store. The trouble Im having is “re-bootstrap” my app again. This is so that I can re initialize the dbs, store et. for the next user.

Anyone have experience with this?

MyApp is the base root component that is loaded on startup and makes sure all the Dbs and other native tasks are ready.

What I have tried so far:

  1. calling this.navController.setRoot(MyApp)
  2. Calling #1 from @Effects()

code? I have been working with ngRx

At the moment I am going into a hard shutdown after the DB’s are successfully deleted.
closeApp(){ this.platform.exitApp() };