Deleting nodes from an AWS Elasticsearch cluster can be done in a few steps.
First, you will need to identify the node you want to delete. You can do this by logging into the AWS Elasticsearch management console, selecting the cluster you want to manage, and then selecting the Nodes tab. Here you will be able to view all the nodes in the cluster and the status of each.
Once you have identified the node you want to delete, the next step is log into the command line interface on that node and run the following command:
curl -XDELETE <node_endpoint>
This will delete the node from the cluster and free up any associated resources.
If you have any data stored on that node, you should then export it prior to deleting the node. To do this, you can use the AWS Elasticsearch API.
Finally, after you have successfully deleted the node, you will need to update the cluster configuration settings so that the cluster functions properly. You can do this by logging into the AWS Elasticsearch console and selecting the Configuration tab. Here you can edit the cluster settings and make sure they match the number of nodes you want in the cluster.
Following these steps should allow you to successfully delete any nodes from your AWS Elasticsearch cluster.