As far as I understood you, you want to replace an Ubuntu Linux installation by Windows 10. As others have already proposed, it is recommended to remove the partition table with its partition scheme first. You may also create an empty partition table and then let the Windows installer create the needed partitions for a Windows 10 installation and your undisclosed system firmware boot mode.