Why do you need to kill the viewmodel, what are you trying to achieve, maybe this is a case of an XY problem?
Also, why does that screen need to be in the backstack if you’re logged out? Maybe you want to navigate away from it completely and not have it in the backstack, accessible if someone just presses the back button in the first place, which would also in turn kill the VM if it wasn’t in that backstack.