You can delete an NSX Controller, if necessary. You can forcefully delete only the last controller in the node.
- Remember the following points while deleting controllers:
- Do not attempt to delete the controller VM before deleting it through the vSphere Web Client UI or API. When the UI is not usable, use the
DELETE /2.0/vdn/controller/{controllerId}
API to delete the controller. - After deletion of a node, ensure that the existing cluster stays stable.
- When deleting all the nodes in a cluster, the last remaining node must be deleted using the Forcefully Delete option. Always verify that the controller VM is deleted successfully. If not, manually power off the VM and delete the controller VM using the UI.
- If the delete operation fails or if you are unable to delete controller in certain state like a disconnected controller, set the forceRemoval parameter in the API to true. For example,
DELETE /2.0/vdn/controller/{controllerId}?forceRemoval=true
. After forceful removal, manually power off the VM. - Since a multi-node cluster can only sustain one failure, deletion counts as a failure. The deleted node must be redeployed before another failure occurs.
- Do not attempt to delete the controller VM before deleting it through the vSphere Web Client UI or API. When the UI is not usable, use the
- For Cross-vCenter NSX environment:
- Deleting the controller VM or powering it off directly in vCenter Server is not a supported operation. The Status column displays Out of sync status.
- If a controller deletion succeeds only partially, and an entry is left behind in the NSX Manager database in a Cross-vCenter NSX environment, use the
DELETE api/2.0/vdn/controller/external
API. - If the controller was imported through the NSX Manager API, use the removeExternalControllerReference API with the forceRemoval option.
-
When deleting a controller, NSX requests to delete a controller VM via vCenter Server using the Managed Object ID (MOID) of the VM. If vCenter Server cannot find VM by its MOID, NSX reports failure for the controller delete request and cancels the operation.
If the Forcefully Delete option is selected, NSX does not cancel the controller delete operation and clears the controller's information. NSX also updates all the hosts to no longer trust the deleted controller. However, if the controller VM is still active and running with a different MOID, it still has the credentials to participate as a member of the controller cluster. Under this scenario, any logical switch or router that is assigned to this controller node does not function properly because the ESXi hosts no longer trust the deleted controller.
To delete the NSX Controller, perform the following procedure: