DirectX10 was not meant to be uninstalled, especially not the way you were doing it. Since Vista, DirectX is part of the OS, unlike 9.0c and previous versions.
Click this link, download the installer, run it, and it should repair whatever damage you've done to Dx10.
If your games won't run under Dx10, download the
Dx9.0c redistributable and install it. You should also be able to find the exact same installer on one of your game CDs, as they usually attempt to install it if it's required.