# Deleted Restore files from S3 AWS

**URL:** <https://discuss.elastic.co/t/deleted-restore-files-from-s3-aws/345921>\
**Category:** Elastic Agent\
**Created:** [October 27, 2023, 1:11pm UTC](https://discuss.elastic.co/t/deleted-restore-files-from-s3-aws/345921 "2023-10-27T13:11:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pete1](https://avatars.discourse-cdn.com/v4/letter/p/67e7ee/32.png) [@Pete1](https://discuss.elastic.co/u/Pete1)\
**Post date:** [October 27, 2023, 1:11pm UTC](https://discuss.elastic.co/t/deleted-restore-files-from-s3-aws/345921/1 "2023-10-27T13:11:01Z")

</div>

Hello, i am using S3 as a backup storage for my Elasticsearch. The problem is that i deleted all my files except the indices folder from S3. Is there any way to recover the indices ?

---

<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:** [October 27, 2023, 2:09pm UTC](https://discuss.elastic.co/t/deleted-restore-files-from-s3-aws/345921/2 "2023-10-27T14:09:31Z")

</div>

If you used the Snasphot API then you can restore your data using the Restore API.

---

<div class="post-metadata">

**Author:** ![Pete1](https://avatars.discourse-cdn.com/v4/letter/p/67e7ee/32.png) [@Pete1](https://discuss.elastic.co/u/Pete1)\
**Post date:** [November 2, 2023, 10:20am UTC](https://discuss.elastic.co/t/deleted-restore-files-from-s3-aws/345921/3 "2023-11-02T10:20:51Z")

</div>

How can i do this if i miss the metadata files that have been deleted ?

---

<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:** [November 2, 2023, 10:57am UTC](https://discuss.elastic.co/t/deleted-restore-files-from-s3-aws/345921/4 "2023-11-02T10:57:10Z")

</div>

I don't think you can restore if you altered the backup.

See [Snapshot and restore | Elasticsearch Guide [8.11] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshot-restore.html#snapshot-repository-contents)

> **Don’t modify anything within the repository or run processes that might interfere with its contents.** If something other than Elasticsearch modifies the contents of the repository then future snapshot or restore operations may fail, reporting corruption or other data inconsistencies, or may appear to succeed having silently lost some of your data.

---

<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:** [November 30, 2023, 10:58am UTC](https://discuss.elastic.co/t/deleted-restore-files-from-s3-aws/345921/5 "2023-11-30T10:58:01Z")

</div>

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