Bird
0
0

You want to delete all indexes starting with temp_. Which command correctly deletes all such indexes?

hard🚀 Application Q9 of 15
Elasticsearch - Index Management
You want to delete all indexes starting with temp_. Which command correctly deletes all such indexes?
ADELETE /temp_*
BPOST /temp_*/_close
CDELETE /temp_index
DPOST /temp_*/_delete
Step-by-Step Solution
Solution:
  1. Step 1: Use wildcard to target multiple indexes

    DELETE /temp_* deletes all indexes starting with temp_.
  2. Step 2: Confirm correct HTTP method and endpoint

    DELETE method with wildcard is valid; _close or _delete endpoints are incorrect here.
  3. Final Answer:

    DELETE /temp_* -> Option A
  4. Quick Check:

    Wildcard with DELETE removes matching indexes [OK]
Quick Trick: Use DELETE with wildcard to remove multiple indexes [OK]
Common Mistakes:
MISTAKES
  • Using POST instead of DELETE to delete indexes
  • Using _close or _delete endpoints incorrectly
  • Deleting a single index instead of wildcard

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes