# Snapshot\_missing\_exception when deleting multiple snapshots

**URL:** https://discuss.elastic.co/t/snapshot-missing-exception-when-deleting-multiple-snapshots/266834
**Category:** Elasticsearch
**Created:** [March 10, 2021, 4:06pm UTC](https://discuss.elastic.co/t/snapshot-missing-exception-when-deleting-multiple-snapshots/266834 "2021-03-10T16:06:15Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Norman\_Khine](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/norman_khine/32/3342_2.png) [@Norman\_Khine](https://discuss.elastic.co/u/Norman_Khine)
#### Post date: [March 10, 2021, 4:06pm UTC](https://discuss.elastic.co/t/snapshot-missing-exception-when-deleting-multiple-snapshots/266834/1 "2021-03-10T16:06:15Z")

</div>

Hello, from the documentation, [Delete a snapshot | Elasticsearch Reference [7.11] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-snapshots.html) I am trying to delete multiple snapshots, but get an error:

```auto
{
  "error" : {
    "root_cause" : [
      {
        "type" : "snapshot_missing_exception",
        "reason" : "[esbackup-elk-prod:20200124031645,20200125031645] is missing"
      }
    ],
    "type" : "snapshot_missing_exception",
    "reason" : "[esbackup-elk-prod:20200124031645,20200125031645] is missing"
  },
  "status" : 404
}

```

I am running the following from the Kibana console

```auto
DELETE /_snapshot/esbackup-elk-prod/20200124031645,20200125031645

```

if I run it on individual snapshot, this works, so

```auto
DELETE /_snapshot/esbackup-elk-prod/20200124031645

```

Any advice is much appreciated

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [March 10, 2021, 10:01pm UTC](https://discuss.elastic.co/t/snapshot-missing-exception-when-deleting-multiple-snapshots/266834/2 "2021-03-10T22:01:10Z")

</div>

The docs you link are for 7.11. Is that the version you're using?

---

<div class="post-metadata">

### Author: ![Norman\_Khine](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/norman_khine/32/3342_2.png) [@Norman\_Khine](https://discuss.elastic.co/u/Norman_Khine)
#### Post date: [March 11, 2021, 4:48am UTC](https://discuss.elastic.co/t/snapshot-missing-exception-when-deleting-multiple-snapshots/266834/3 "2021-03-11T04:48:10Z")

</div>

I am using version 7.9 which has the same API call [Delete a snapshot | Elasticsearch Reference [7.x] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.x/delete-snapshots.html)

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [March 11, 2021, 7:02am UTC](https://discuss.elastic.co/t/snapshot-missing-exception-when-deleting-multiple-snapshots/266834/4 "2021-03-11T07:02:41Z")

</div>

Hmm I can't see a way to get this error message in any of the 7.9.x versions. Can you share the output of `GET /_cat/nodes?h=n,v` to verify exactly which version(s) you are using?

---

<div class="post-metadata">

### Author: ![Norman\_Khine](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/norman_khine/32/3342_2.png) [@Norman\_Khine](https://discuss.elastic.co/u/Norman_Khine)
#### Post date: [March 19, 2021, 7:49am UTC](https://discuss.elastic.co/t/snapshot-missing-exception-when-deleting-multiple-snapshots/266834/5 "2021-03-19T07:49:10Z")

</div>

> [@DavidTurner](#):
>
> /\_cat/nodes?h=n,v

```auto
 khine@dhegdheer   ~  curl -X GET 'https://es-cluster/_cat/nodes?h=n,v'  ✔  10632  07:45:59 
409992bfb2253150f1663d6c447268bf 7.7.0
70a3ad17bbde8477461ac1ede4883d5f 7.7.0
265ef5b613b158c738904ab2bb42f5ac 7.7.0
49f176dd9efda0580f02682bee74b6e3 7.7.0
45308337dfcb7b51d4f20f83ef82896e 7.7.0
e1e258089f61e55fc67865c19754d5cd 7.7.0
a8156ae9d4d9e394b06c416eded832e9 7.7.0
b4c458e3ad3d1fab552cc60319fd73d3 7.7.0
521b3aa1ec901492f5b14307fca02d0b 7.7.0
01e87927f72eecf1734a15985d755a24 7.7.0
f44eb0392530741363516c604d618d95 7.7.0

```

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [March 19, 2021, 8:16am UTC](https://discuss.elastic.co/t/snapshot-missing-exception-when-deleting-multiple-snapshots/266834/6 "2021-03-19T08:16:47Z")

</div>

You said you were using 7.9 but this tells us you are using 7.7.0, in which the delete snapshot API is different -- see the docs at the bottom of [Take a snapshot of one or more indices | Elasticsearch Reference [7.7] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.7/snapshots-take-snapshot.html) and note that there's nothing to indicate `DELETE /_snapshot/esbackup-elk-prod/20200124031645,20200125031645` should work in this version.

---

<div class="post-metadata">

### Author: ![Norman\_Khine](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/norman_khine/32/3342_2.png) [@Norman\_Khine](https://discuss.elastic.co/u/Norman_Khine)
#### Post date: [March 19, 2021, 9:47am UTC](https://discuss.elastic.co/t/snapshot-missing-exception-when-deleting-multiple-snapshots/266834/7 "2021-03-19T09:47:30Z")

</div>

Hi, sorry, from [Delete a snapshot | Elasticsearch Reference [7.x] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.x/delete-snapshots.html) shows that `DELETE /_snapshot/esbackup-elk-prod/20200124031645,20200125031645` should work for `7.x`

thanks

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [March 19, 2021, 10:12am UTC](https://discuss.elastic.co/t/snapshot-missing-exception-when-deleting-multiple-snapshots/266834/8 "2021-03-19T10:12:02Z")

</div>

Note the warning, highlighted in yellow, at the top of that page:

> You are looking at preliminary documentation for a future release. Not what you want? See the [current release documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html).

You are not using `7.x`, you are using `7.7.0`, so the `7.x` docs do not apply.

---

<div class="post-metadata">

### Author: ![Norman\_Khine](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/norman_khine/32/3342_2.png) [@Norman\_Khine](https://discuss.elastic.co/u/Norman_Khine)
#### Post date: [March 22, 2021, 9:15am UTC](https://discuss.elastic.co/t/snapshot-missing-exception-when-deleting-multiple-snapshots/266834/9 "2021-03-22T09:15:40Z")

</div>

ok, thank you

---

<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: [April 19, 2021, 9:16am UTC](https://discuss.elastic.co/t/snapshot-missing-exception-when-deleting-multiple-snapshots/266834/10 "2021-04-19T09:16:34Z")

</div>

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