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 The deletion of cluster node VM has failed.

Cause

  • The API call has invalid input, for example, an incorrect node ID.

  • There is a connectivity problem between NSX Manager and vCenter Server.

Solution

  • Make sure the API parameters are correct.
  • Call POST /api/v1/cluster/nodes/deployments/<node-id>?action=delete with the force option to delete the controller. Then manually delete the VM from vCenter Server.