We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c554d57 commit e91092eCopy full SHA for e91092e
test_elasticsearch/utils.py
@@ -215,10 +215,13 @@ def wipe_data_streams(client):
215
216
217
def wipe_indices(client):
218
- client.options(ignore_status=404).indices.delete(
219
- index="*,-.ds-ilm-history-*",
220
- expand_wildcards="all",
221
- )
+ indices = client.cat.indices().strip().splitlines()
+ if len(indices) > 0:
+ index_names = [i.split(" ")[2] for i in indices]
+ client.options(ignore_status=404).indices.delete(
222
+ index=",".join(index_names),
223
+ expand_wildcards="all",
224
+ )
225
226
227
def wipe_searchable_snapshot_indices(client):
0 commit comments