So, flash both eMMC and rootfs and the device will be nuked.
Edit: This may sound complicated, but lots of setting and even applications survive a flash in /etc and /opt folders.