Hi Shravan,
The quick way to revert back to EOS is to perform the following commands.
cd /host
echo SWI=flash:EOS.swi > boot-config
sync
reboot
If you have a startup-config you would like to use, put it on the flash under /host (which is /mnt/flash in EOS)
If you already have an EOS.swi on the flash you can skip the curl command and make sure SWI=flash:relative/path/to/EOS.swi
If in the future you want to install SONiC on your device and prevent the flash from being wiped, please touch do-not-clean on your flash prior to rebooting to SONiC.
Thanks,