If you open up the Configuration Nodes sidebar from the main menu, you should see in the list the home-assistant server node. Double click on it to open its edit dialog and then click the delete button. Once you've removed it, you should be able to uninstall the module.