content: I think flashing new rom in a form of flashable zip for the default recovery would suffice. If those devices have access to TWRP or CWM, even better then. Full wipe, cache and dalvik cache, then flash. You literary have a new factory-set device.