Resetting your Android device to factory settings erases all data on the device and clears out unnecessary files. The reset process wipes all your information from it, including private data, messages ...
You can turn off Safe Mode on Android by restarting your device or using the Notification panel.