August 2019
Intermediate to advanced
560 pages
13h 41m
English
You can remove a specific document by using the document identifier. Let's remove the ACWF ETF document by setting _id to 1 and using the cf_etf index. A successful removal will return 200 OK:
The primary shard may not be available to perform the operation while the delete request comes in. By default, the delete operation will wait up to 1 minute on the primary shard, then fail, and respond to the error. You may attach the timeout request parameter with a time period. The default wait time is 1 minutes. Use Delete /{index}/_doc/{_id}?timeout=2m to wait for a longer time (for example, 2 minutes).
Read now
Unlock full access