Additional Information - ES 8.6.2
This section provides additional information you must know while working with Elasticsearch (ES).
Reset Password for ES
To reset the password, go to the bin folder and execute the following command:
For Windows:
elasticsearch-reset-password.bat -u elastic --url http://localhost:9200
Refer to the sample screenshot:
For Linux
./elasticsearch-reset-password -u elastic --url http://localhost:9200
Also, refer to the link to know more about ES Password reset.
Delete nodes from ES
To delete nodes from ES,
Execute the below cURL command:
curl --location --request DELETE 'http://localhost:9200/_all'
Refer to the sample screenshot: