Bird
0
0

Which Elasticsearch API is used to delete multiple documents matching a query?

easy🧠 Conceptual Q2 of 15
Elasticsearch - Document Operations

Which Elasticsearch API is used to delete multiple documents matching a query?

A_bulk_delete
B_remove_by_query
C_delete_all
D_delete_by_query
Step-by-Step Solution
Solution:
  1. Step 1: Identify API for deleting by query

    Elasticsearch provides the _delete_by_query API to delete documents matching a query.
  2. Step 2: Verify options

    Only _delete_by_query matches the correct API name; others are invalid or do not exist.
  3. Final Answer:

    _delete_by_query -> Option D
  4. Quick Check:

    Delete multiple docs = _delete_by_query [OK]
Quick Trick: Use _delete_by_query to remove docs matching criteria [OK]
Common Mistakes:
MISTAKES
  • Using _bulk_delete which does not exist
  • Confusing _delete_by_query with _delete_all

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes