﻿---
title: Wait for snapshot
description: Phases allowed: delete. Waits for the specified SLM policy to be executed before removing the index. This only checks that an SLM policy has had a successful...
url: https://www.elastic.co/elastic/docs-builder/docs/3028/reference/elasticsearch/index-lifecycle-actions/ilm-wait-for-snapshot
products:
  - Elasticsearch
---

# Wait for snapshot
Phases allowed: delete.
Waits for the specified SLM policy to be executed before removing the index.
This only checks that an SLM policy has had a successful execution at some point after the wait action has started.
It does not ensure that a snapshot of the index is available before deletion.

## Options

<definitions>
  <definition term="policy">
    (Required, string) Name of the SLM policy that the delete action should wait for.
  </definition>
</definitions>


## Example

```json

{
  "policy": {
    "phases": {
      "delete": {
        "actions": {
          "wait_for_snapshot" : {
            "policy": "slm-policy-name"
          }
        }
      }
    }
  }
}
```