// This file is autogenerated, DO NOT EDIT
// ilm/actions/ilm-delete.asciidoc:40

[source, python]
----
resp = client.ilm.put_lifecycle(
    name="my_policy",
    policy={
        "phases": {
            "delete": {
                "actions": {
                    "delete": {}
                }
            }
        }
    },
)
print(resp)
----
