Back up any databases, certificates, keys, and configuration files you need to keep
Sign in with a local administrator account
Stop SQL Server-related services in Services.msc or with an elevated Command Prompt
Open Settings > Apps > Installed apps
Uninstall all SQL Server 2019 components one by one, including:
Microsoft SQL Server 2019
SQL Server 2019 Browser
SQL Server 2019 Setup Support Files
SQL Server 2019 LocalDB
SQL Server 2019 Command Line Utilities
SQL Server Management Studio, if installed separately
SQL Server VSS Writer
SQL Server Native Client
Microsoft ODBC Driver for SQL Server, if you want it removed
Microsoft OLE DB Driver for SQL Server, if you want it removed
Restart the computer
Open Control Panel > Programs and Features
Remove any remaining SQL Server entries
Run SQL Server Setup Center from the installation media or ISO
Select Remove
Choose the SQL Server 2019 instance and shared features
Complete the removal wizard
If the uninstaller fails, open an elevated Command Prompt
Run `wmic product get name`
Identify SQL Server 2019 product names and uninstall them with `wmic product where name=”PRODUCT NAME” call uninstall`
If needed, use `msiexec /x {PRODUCT-CODE-GUID}`
Delete remaining SQL Server folders if they still exist:
`C:Program FilesMicrosoft SQL Server`
`C:Program Files (x86)Microsoft SQL Server`
`C:ProgramDataMicrosoftSQL Server`
Remove leftover services with `sc delete SERVICE_NAME`
Check and remove SQL Server registry entries only if you are certain they belong to SQL Server
Restart the computer again
Verify no SQL Server services, folders, or installed apps remain
