You can factory reset a PlayStation 4 from your console's dashboard and via safe mode on your console.
Safe Mode is a basic diagnostic mode for your operating system that starts the computer without most of its drivers and software.