When deleting a controller through the API (POST /api/v1/cluster/nodes/deployments/<node-id>?action=delete) or the NSX Manager UI, you get the error Failed to remove the cluster node VM from the cluster.

Cause

  • the controller nodes become temporarily unavailable during the process of removing a controller from its cluster.

  • The status of the controller cluster is not CONNECTED.

Solution

  • From the NSX Manager UI, verify that the status of the controller cluster is healthy. If the controller to be deleted is healthy and the controller cluster is healthy, delete the controller again.
  • If either the controller to be deleted or the controller cluster is not healthy, take steps to make sure that both are healthy. Then delete the controller again.