How can I delete all documents in Elasticsearch from index without deleting index itself?
from elasticsearch import Elasticsearch
es = Elasticsearch("http://elasticsearch.internal:9200")
Elasticsearch.delete(es, index="index")
response
TypeError: delete() missing 1 required positional argument: 'id'
Is there option like truncate table in sql. I know that I can loop all ids and delete each of them but maybe there is some magic option with wildcard for example.