def METHOD_NAME(write_client):
    write_client.indices.create(
        index="test-index",
        body={"settings": {"number_of_replicas": 0, "number_of_shards": 1}},
    )
    i = Index("test-index", using=write_client)
    i.delete()
    assert not write_client.indices.exists(index="test-index")