How to Uninstall Exchange 2013 on Server 2012

Last year I set up 2012 AD and Exchange 2013 for testing in my home lab (Citrix XenServer 6.2 on i7-950, 12GB DDR3, Rocketraid 3510). Fast forward to this year where I remembered Exchange 2013 Service Pack 1 is finally supported on Server 2012 R2. I wanted to do a clean install of Exchange Service Pack 1 onto a Server 2012 R2 VM in my AD environment, so I needed to uninstall Exchange 2013 first. However, removing Exchange isn’t as simple and going to Add/Remove Programs. If you do that first without anything else, you will get a wall of text like the one below:

exchange_2013_uninstall_error

Fortunately after some googling, I found the commands to successfully remove Exchange 2013 thanks to this blog post:

Now you can uninstall Exchange 2013 from Add/Remove Programs.