Hi @Niranjan T Pattana Shetty ,
Please provide more detailed error message to help further troubleshooting. By my experience, I have below suggestions for your reference.
1.Please try to use the command below via Command Prompt(run as Administrator) to see if the uninstallation can be successful.
Setup.exe /mode:Uninstall /IAcceptExchangeServerLicenseTerms
2.If the cmd doesn’t work, please run ADSIEdit.msc and remove Exchange 2016 from the location below:
CN=configuration -> DC=domain name,DC=com -> CN=Services -> CN=Microsoft Exchange -> CN=<YourExchOrgName> -> CN=Administrative Group -> CN=Exchange Administrative Group -> CN=Servers
(Important: ADSI Edit must be handled with care. Modifying the attributes using ADSIEdit can cause significant issues with your infrastructure if something is done in a wrong way. We would suggest you make a backup before modifying.)
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.