Did you follow my directions to completely remove everything regarding WSUS?
https://www.ajtek.ca/wsus/how-to-remove-wsus-completely-and-reinstall-it/
Wsus Reinstallation Failed At Configuring Database

I have wsus on Windows Server 2008 r2, Recently i have removed wsus Services and all data thats in wsus Folder, now i'm trying to install wsus again and its going to failed at configuring database. please suggest.
2 answers
Sort by: Most helpful
-
Adam J. Marshall 6,181 Reputation points MVP
2021-02-24T15:00:18.727+00:00 -
Rita Hu -MSFT 9,441 Reputation points
2021-02-25T02:04:39.72+00:00 Hi jayz patelz,
Thanks for your response.
Did you means that you have tried to reinstalled the WSUS role on the Windows Server 2008R2? The Windows Server 2008R2 is out of support. Please try to install the WSUS role on a higher WIndows version, like Windows Server 2012R2 or Windows Server 2016.
In addition, it is recommended to follow the below steps to remove the WSUS completely:
To remove WSUS completely, we need to:Remove the following server roles and features through Server Manager:
Roles: Windows Server Update Server
features: Windows Server Update Services Tools(at Remote Server Administration Tools -> Role Administration Tools)Follow the wizard prompts to complete the deletion. Then restart the server.
After the server is restarted, manually delete the folder or file of the following path:
- C:\WSUS (this depends on where you choose to install WSUS)
- C:\Program Files\Update Services
Delete database files
If you use SQL Server Management Studio to delete a database, you can try as follow.
In Object Explorer, connect to an instance of the SQL Server Database Engine, and then expand that instance. Expand Databases, right-click the database to delete, and then click Delete. Confirm the correct database is selected, and then click OK.If you use a WID database, it is recommended to delete the following path folders:
C:\Windows\WIDIn the IIS Information Services (IIS) Manager, manually remove the WSUS Administration site. Then restart the server.
Reinstalling the WSUS role often failed due to uninstall incomplete. So please try to follow the below steps to see whether this issue will be resolved or not.
Hope the above will be helpful. Please feel free to inform me if there are any updates.
Regards,
Rita
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.