Kind of vague but if you replaced the windows 10 OS with 2012 R2 core and want to go back to windows 10 then boot from the install media, recreate partition, continue with windows 10 installation. You can create the installation media here (if needed)
https://www.microsoft.com/en-us/software-download/windows10
--please don't forget to Accept as answer if the reply is helpful--