# Delete snapshot fails due to no space on disk

**URL:** <https://discuss.elastic.co/t/delete-snapshot-fails-due-to-no-space-on-disk/115747>\
**Category:** Elasticsearch\
**Created:** [January 16, 2018, 3:54pm UTC](https://discuss.elastic.co/t/delete-snapshot-fails-due-to-no-space-on-disk/115747 "2018-01-16T15:54:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arvind\_Rao](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arvind_rao/32/26758_2.png) [@Arvind\_Rao](https://discuss.elastic.co/u/Arvind_Rao)\
**Post date:** [January 16, 2018, 3:54pm UTC](https://discuss.elastic.co/t/delete-snapshot-fails-due-to-no-space-on-disk/115747/1 "2018-01-16T15:54:56Z")

</div>

We run ES 5.2.2 on a 8 node CentOS cluster. We are using filesystem repository to store snapshots. The disk volume storing the snapshot repository ran out of space and is now at 100% used.

We tried running the delete snapshot API to remove older snapshots, but that too fails with the error:

```auto
DELETE /_snapshot/repo_01/old_snapshot_01

{
  "error": {
    "root_cause": [
      {
        "type": "repository_exception",
        "reason": "[repo_01] failed to update snapshot in repository"
      }
    ],
    "type": "repository_exception",
    "reason": "[repo_01] failed to update snapshot in repository",
    "caused_by": {
      "type": "i_o_exception",
      "reason": "No space left on device"
    }
  },
  "status": 500
}

```

I saw this [open issue](https://github.com/elastic/elasticsearch/issues/26730) and it appears that ES tries to create file(s) to initiate the delete, and that operation fails as there is no more space available.

Is there any way to delete older snapshots through the API in such a scenario? If not through the API, is there a safe way to figure out which files from older snapshots are no longer needed and delete a few of them them manually from disk, just enough to make space for the delete API to work?

---

<div class="post-metadata">

**Author:** ![Arvind\_Rao](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arvind_rao/32/26758_2.png) [@Arvind\_Rao](https://discuss.elastic.co/u/Arvind_Rao)\
**Post date:** [January 17, 2018, 9:03am UTC](https://discuss.elastic.co/t/delete-snapshot-fails-due-to-no-space-on-disk/115747/2 "2018-01-17T09:03:52Z")

</div>

It appears there is no way to run the delete API except to somehow clear just enough space on the disk. I managed to figure out some unused files and was then able to run the delete API .

---

<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:** [February 14, 2018, 9:04am UTC](https://discuss.elastic.co/t/delete-snapshot-fails-due-to-no-space-on-disk/115747/3 "2018-02-14T09:04:09Z")

</div>

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