You can re-link your device to the MDM through the device's admin menu (the key button on the right side of the device's screen).
You can reset the device to factory settings by pressing a specific combination of hardware buttons while powering it on.
Please refer to the device manufacturer's documentation for detailed instructions.