Fully Wipe Nexus Device
You can download and flash a factory image from here: https://developers.google.com/android/nexus/images#razorktu84p it also includes instructions at the top on how to do it. This will restore it completely to stock.