How to remove SharePoint server from farm?
As per the Technet article, Remove a server from a farm in SharePoint 2013, Use Add/Remove Programs from "Control Panel" to remove SharePoint 2007/2010/2013 servers from the Farm.
- Control Panel >> Add/Remove programs >> Microsoft SharePoint Server 2013 >> Remove
However, If you try to rebuild SharePoint on the server, I would prefer to use "Disconnect this server from farm" option on PSCONFIG wizard. To remove SharePoint server from farm, Run "SharePoint Products Configuration Wizard" (psconfigui) and choose "Disconnect from this server farm option" and then run through the wizard.
Remove SharePoint server from farm with PowerShell:
Here is the PowerShell way to remove SharePoint server from farm. Run this PowerShell command from the target server:
Disconnect-SPConfigurationDatabase -Confirm:$falsePSCONFIG command line to remove a SharePoint server from an existing farm:
psconfig –cmd configdb -disconnect
Basically, these command line and PowerShell cmdlets does the same things as SharePoint Products Configuration wizards disconnecting server from farm. But wait! Are we completely done? No! There could be several artifacts left in the server such as Server Roles, IIS directories, Logs, Registry keys, etc. So, I would recommend doing a fresh install of OS and SharePoint for a clean server rebuild.
You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.