Replace queries deprecated in ES 7, removed in ES 8
Elasticsearch 8 does not support deleting indices with a wildcard anymore, and removing all indices is a bit overkill.
Elasticsearch 8 doesn't support nested_path in favor of path in the nested context.