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
Give http or https accordingly
Refer to the sample screenshot:
For Linux:
./elasticsearch-reset-password -u elastic --url http://localhost:9200
Give http or https accordingly
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 using Postman.
curl --location --request DELETE 'http://localhost:9200/_all'
Give http or https accordingly
Refer to the sample screenshot: