I know a method that turns the device-wiping feature off, but I have only tried it on my Moto G. Go to your Settings app, tap Security, scroll down to the Device Administrators section and click View or deactivate device administrators. If you see it, uncheck Device Wipe Policy, and you're done.