Unattended uninstall
Add the -uninstall switch to the installer executable call to uninstall your Content Manager Server. To uninstall specific Content Manager server software components, omit the -uninstall switch and specify one or more of the uninstall parameters.
The following command uninstalls your previously installed Content Manager server completely, without showing a user interface:
TridionSites.exe -s -uninstall
You can also uninstall specific Content Manager server software components by leaving out the -uninstall switch, and instead specifying a specific parameter for each software component you want to uninstall, set to the value (All).
For example, the following command uninstalls only Template Builder, without showing a user interface:
TridionSites.exe -s TemplateBuilder_RemovedFeatures=(All)