I am creating a ilm policy for a opensearch index which requires only delete 30 days data without deleting the index , is this possible without deleting the index?

ILM policy should only contain hot to delete stage.
This is my code for ilm policy please check the policy whether it is correct or not.

PUT _ilm/policy/my_policy
{
“policy”: {
“phases”: {
“hot”: {
“actions”: {
“rollover”: {
“max_age”: “30d”
}
}
},
“delete”: {
“min_age”: “30d”,
“actions”: {
“delete”: {}
}
}
}
}
}

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.