SPServer.Delete method
Removes the server and all service instances that are deployed on the server from the server farm.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Overrides Sub Delete
'Usage
Dim instance As SPServer
instance.Delete()
public override void Delete()
Remarks
This operation does not remove the configuration database service. To remove the configuration database service, use SPFarm.Local.Delete().