This section provides additional information that you must know while working with Elasticsearch (ES).
Reset Password for ES
To reset the password,
Go to the bin folder and execute the command given below:
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: