# Not able to create delete policy for index

**URL:** <https://discuss.elastic.co/t/not-able-to-create-delete-policy-for-index/281844>\
**Category:** Elasticsearch\
**Created:** [August 18, 2021, 3:03pm UTC](https://discuss.elastic.co/t/not-able-to-create-delete-policy-for-index/281844 "2021-08-18T15:03:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pratik\_jain163](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pratik_jain163/32/93354_2.png) [@pratik\_jain163](https://discuss.elastic.co/u/pratik_jain163)\
**Post date:** [August 18, 2021, 3:03pm UTC](https://discuss.elastic.co/t/not-able-to-create-delete-policy-for-index/281844/1 "2021-08-18T15:03:44Z")

</div>

I am trying to create a policy from AWS ES kibana dev tool and got this message

> {"Message":"Your request: '/\_ilm/policy/my\_policy' is not allowed."}

```auto
PUT _ilm/policy/my_policy
{
    "policy": {
        "phases": {
            "delete": {
                "min_age": "10d",
                "actions": {
                    "delete": {}
                }
            }
        }
    }
}

```

and from state management policies i also tried to create policy but i got this exception

> [illegal\_argument\_exception] Invalid field: [phases] found in Policy.

we are using AWS ES 7.9 version.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [August 18, 2021, 4:03pm UTC](https://discuss.elastic.co/t/not-able-to-create-delete-policy-for-index/281844/2 "2021-08-18T16:03:27Z")

</div>

I don't think this feature is available there.

Did you look at [Cloud by Elastic](https://www.elastic.co/cloud), also available if needed from [AWS Marketplace](https://aws.amazon.com/marketplace/pp/Elasticsearch-Inc-Elasticsearch-Service-on-Elastic/B01N6YCISK), [Azure Marketplace](https://azuremarketplace.microsoft.com/en-us/marketplace/apps/elastic.ec-azure?tab=Overview) and [Google Cloud Marketplace](https://console.cloud.google.com/marketplace/details/endpoints/elasticsearch-service.gcpmarketplace.elastic.co)?

Cloud by elastic is one way to have access to **all features** , all managed by us. Think about what is there yet like Security, Monitoring, Reporting, SQL, Canvas, Maps UI, Alerting and built-in solutions named [Observability](https://www.elastic.co/observability), [Security](https://www.elastic.co/security), [Enterprise Search](https://www.elastic.co/enterprise-search) and what is coming next 🙂 ...

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 18, 2021, 9:34pm UTC](https://discuss.elastic.co/t/not-able-to-create-delete-policy-for-index/281844/3 "2021-08-18T21:34:25Z")

</div>

The aws service is not true Elasticsearch, and does not include ILM. You will need to upgrade to Elastic Cloud as David mentioned.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 15, 2021, 9:34pm UTC](https://discuss.elastic.co/t/not-able-to-create-delete-policy-for-index/281844/4 "2021-09-15T21:34:44Z")

</div>

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