
Remove-WindowsFeature -Name UpdateServices-WidDB
You can remove it through PowerShell from an Administrative PowerShell prompt by:. The easiest way is to use SQL Server Management Studio to connect to the WID, and then right click on the SUSDB database > Tasks > Detach. If you want to remove WSUS and KEEP the WID, and plan on NOT to reinstall WSUS, you must first detach the SUSDB database from SQL before removing the mdf and ldf files. When you do remove the WID Feature, make sure to remove the entire C:\Windows\WID folder too. If the WID was only used for WSUS, you should remove the WID feature in Server Manager to fully clean up the installation.
If you were using the Windows Internal Database (WID), specifically delete the SUSDB.mdf and SUSDB_log.ldf in C:\Windows\WID\Data (or C:\Windows\SYSMSI\SSEE\MSSQL.2005\MSSQL\Data for Server 2008/2008 R2). Remove the Database WSUS was using (SUSDB.mdf and SUSDB_log.ldf). Remove-WindowsFeature -Name UpdateServices,UpdateServices-DB,UpdateServices-RSAT,UpdateServices-API,UpdateServices-UI -IncludeManagementTools
You can use an Administrative PowerShell prompt and run:. You can remove the role through the GUI using Server Manager or. The steps to remove WSUS and reinstall WSUS are pretty standard but they do have some variances on how WSUS was installed in the first place.