# Snapshot Backup is not deleting Across the ELK Cluster

**URL:** <https://discuss.elastic.co/t/snapshot-backup-is-not-deleting-across-the-elk-cluster/302620>\
**Category:** Elasticsearch\
**Tags:** slm-snapshot-lifecycle-management\
**Created:** [April 18, 2022, 12:34pm UTC](https://discuss.elastic.co/t/snapshot-backup-is-not-deleting-across-the-elk-cluster/302620 "2022-04-18T12:34:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhishek\_Pratap\_Sin1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abhishek_pratap_sin1/32/78064_2.png) [@Abhishek\_Pratap\_Sin1](https://discuss.elastic.co/u/Abhishek_Pratap_Sin1)\
**Post date:** [April 18, 2022, 12:34pm UTC](https://discuss.elastic.co/t/snapshot-backup-is-not-deleting-across-the-elk-cluster/302620/1 "2022-04-18T12:34:40Z")

</div>

Hi Team,

I have three nodes ELK-Cluster, I have created an SLM policy to take a Snapshot backup on the daily basis and delete the snapshot backup after three days on the cluster  
**[Issue]:** The snapshot backup is deleted from one node only but it is not deleting the snapshot backup from reaming two nodes.

**Please find the below steps also.**

create directory on each node.  
/etc/Elasticsearch/ mkdir elkbackup

Give the permission of the directory on each node  
chown Elasticsearch elkbackup

update the elasticserch.yml file on each node for the backup path  
path.repo: ["/etc/Elasticsearch/elkbackup"]

Restart the each elasticserch service  
systemctl restart elasticserch

create a snapshot on master or slave node.

```
      curl -u elastic:elastic123 -XPUT -H "Content-Type: application/json" 'http://localhost:9200' -d'
     {"type":"fs","settings":{"location":"/etc/elasticsearch/elkbackup","compress":"true"}}'

```

create snapshot life-cycle on master or salve node.

curl -u elastic:elastic123 -XPUT -H "Content-Type: application/json" '[http://localhost:9200/\_slm/](http://localhost:9200/_slm/)' -d'{  
"schedule": "0 0 2 \* \* ?",  
"name": "\<elk-backup-{now/d}\>",  
"repository": "elkrepo",  
"config": {"indices": ["\*"]},  
"retention": {"expire\_after": "3d"}  
}'

Please help me here.

Thanks  
Abhishek

---

<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:** [May 16, 2022, 12:35pm UTC](https://discuss.elastic.co/t/snapshot-backup-is-not-deleting-across-the-elk-cluster/302620/2 "2022-05-16T12:35:10Z")

</div>

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