How do I disable both the "relaunch apps after reboot" feature as well as the "reopen windows at relaunch" feature? When I reboot (be it after a hard reset or reboot command) I want to be presented with a blank desktop and not everything I had open before. This is the same as this question regarding doing this on El Capitan, but the trick does not seem to work on Mojave (the commands go through, but there is no effect).
What you are looking for is to disable ApplePersistence feature, which can be done with:
defaults write -g ApplePersistence -bool no