// This file is autogenerated, DO NOT EDIT
// indices/shrink-index.asciidoc:17

[source, python]
----
resp = client.indices.shrink(
    index="my-index-000001",
    target="shrunk-my-index-000001",
)
print(resp)
----
