You can remove Windows XP Embedded with Service Pack 2 by deleting the Windows XP Embedded with Service Pack 2 components and the repository from the existing database.

To remove Windows XP Embedded with Service Pack 2

Close all Windows XP Embedded tools.
Start Component Database Manager.
If Component Database Manager does not start in Exclusive Mode, a Windows XP Embedded tool is still open and has a connection to the database. Locate the open tool and close it.

Choose the Packages tab.
In the Available packages list, choose the Windows XP Embedded Client (x86) Service Pack 2 Package (Version 5.1.2600.xxxx, Ryyyy) package.
Choose Delete Package, and then choose Yes.
Close Component Database Manager.
Open Windows Explorer, and navigate to the $:\Windows Embedded Data folder. Open the Repositories folder.
Delete the following folders:
{67C85615-B0C5-42EA-8B8A-E8AB47DB2B1D}

{3DC166E5-E335-49D9-8C75-450318AFD940}

Note You can permanently delete the folders, instead of sending them to the Recycle Bin, by holding down the Shift key while you delete.
If you previously backed up your Windows XP Embedded with Service Pack 1 component database, you can also remove Windows XP Embedded with Service Pack 2 by restoring your component database, and then following steps 7-8.

Note You may be prompted to uninstall Service Pack 2 again, even after you follow these steps. If this occurs, choose OK to close the dialog box and continue with the Windows XP Embedded Service Pack 2 installation.

For more info,Click here!