How Can I Delete the Index Data That Has Been Imported?
Procedure
- Check the ID of the task executed by an index.
Search for log file logs/estool.log. The search content is index name + space + reindex taskID:.
Example: cat estool.log | grep 'index1 reindex taskID:'
The command output is index1 reindex taskID: R9QEdSqcQkSdkqGzinrvAA:68993, where R9QEdSqcQkSdkqGzinrvAA:68993 indicates the task ID.
If an index has multiple types, each type has a task ID.
- Cancel the index recreation task.
curl -XPOST --negotiate -k -u : curl -XPOST --negotiate -k -u : 'https://ip:port/_tasks/taskID/_cancel?pretty'
- ip: service IP address of the EsNode or EsClient instance
- port: port number corresponding to the service IP address of an instance
- index_name: index table name
- Delete the imported indexes from the new cluster.
curl -XDELETE --negotiate -k -u : 'https://ip:port/index_name?pretty'
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot