Remove Exchange 2013 from out domain

We moved to Exchange 365 about 1 year ago and now I would like to reuse the old server so I need to remove Exchange 2013 from our domain.

I doubt it as easy as removing from the control panel

Could someone give me some pointers and this guide on the web - is this a good place to start?

Please follow below steps to uninstall Exchange server:
 1. Disable mailbox:
Get-User | Disable-Mailbox
Get-Mailbox -Arbitration | Disable-Mailbox -Arbitration -DisableLastArbitrationMailboxAllowed
Get-Mailbox -Monitoring | Disable-Mailbox

2. Remove restore mailbox for disconnected or soft-deleted mailbox:
Get-Mailbox | Get-MailboxStatistics | Where {$_.DisconnectReason -eq “Disabled” } | |foreach {Remove-StoreMailbox -Database $_.database -Identity $_.mailboxguid -MailboxState Disabled}
Get-Mailbox | Get-MailboxStatistics | where {$_.DisconnectReason -eq “SoftDeleted”} |foreach {Remove-StoreMailbox -Database $_.database -Identity $_.mailboxguid -MailboxState SoftDeleted}

3. Remove database:
Get-MailboxDatabase | Remove-MailboxDatabase

4. Remove partner application configuration:
Get-PartnerApplication| Remove-PartnerApplication

5. Verify nothing is left:
 Get-Mailbox -Arbitration
 Get-Mailbox -Monitoring

At this point reboot the server and verify that IIS and other roles are working correctly.
 Finally, you can uninstall Exchange 2013 from Add/Remove Programs or PowerShell with below command:
Setup /Mode:Uninstall /iacceptexchangeserverlicenseterms
Ian PriceIT ManagerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

The sequence you written is seems OK
The major thing is to remove all mailboxes, after that exchange will not stop you from uninstalling it.

BTW. You may remove / reuse old exchange server without uninstalling and then remove it from adsiedit.msc (from ad configuration partition) but that path should be used when you are failing to uninstall exchange server

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ian PriceIT ManagerAuthor Commented:
Thank You
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.