Löschen Sie den Index in Elasticsearch Python
from elasticsearch import Elasticsearch
es = Elasticsearch()
es.indices.delete(index='test-index', ignore=[400, 404])
Disgusted Deer