How to change index status to closed in a ISM policy

Hello,

Please i’m doing index management using ODFE and i followed the code mentionned here :

Here is my code :

PUT _opendistro/_ism/policies/warm_cold_policy
{
  "policy": {
    "policy_id": "warm_cold_policy",
    "description": "hot warm delete workflow",
    "default_state": "hot",
    "states": [
        {
            "name": "hot",
            "actions": [
                {
                    "rollover": {
                        "min_index_age": "1h"
                    }
                }
            ],
            "transitions": [
                {
                    "state_name": "warm"
                }
            ]
        },
        {
            "name": "warm",
            "transitions": [
                {
                    "state_name": "delete",
                    "conditions": {
                        "min_index_age": "2h"
                    }
                }
            ]
        },
        {
            "name": "delete",
            "actions": [
                {
                    "delete": {}
                }
            ],
            "transitions": []
        }
    ],
    "ism_template": {
      "index_patterns": ["packetbeat*"],
      "priority": 100
    }
  }
}



============================================================================

PUT _index_template/ism_rollover
{
  "index_patterns": ["packetbeat*"],
  "template": {
    "settings": {
      "opendistro.index_state_management.policy_id": "warm_cold_policy",
      "opendistro.index_state_management.rollover_alias": "packetbeat"
    }
  }
}

============================================================================

PUT packetbeat-000001
{
  "aliases": {
    "packetbeat": {
      "is_write_index": true
    }
  }
}

============================================================================

POST packetbeat/_doc
{
  "message": "test"
}

After one day of using this code, i figured out that the index is not being deleted only if i manually change it’s status to closed using this command : POST /my-index-000001/_close

Is there any method to close the index automatically in my policy after the warm state so it can be deleted automatically ?
Thanks in advance.