title: My ElasticSearch snapshot indices directory are not deleted when I delete the Snapshot
body: <p>In my application, we use daily indices inside ElasticSearch.
  Each day, we create a Snapshot of the previous day, in our Snapshot repository.</p>
  
  <p>After some days, we delete the indices of the Elastic, and after some days again, we delete the Snapshot.</p>
  
  <p>However, when I go into <code>$my_snapshot_repositories_path/indices</code> directory, I still see all the indices that have been Snapshoted, whereas they are not anymore returned by Snapshot list API (and the meta-XXX and snap-XXX files are not present on the filesystem for theses Snapshots).
  However, all the indices directory contains no data, just 5 empty directory with name 1, 2, etc.</p>
  
  <p>This is my repository file hierarchy content:</p>
  
  <pre><code>index
  indices
  meta-backup_flux-2017.03.24.dat
  meta-backup_flux-2017.03.25.dat
  meta-backup_flux-2017.03.26.dat
  </code></pre>
  
  <p>And this is the indices directory file hierarchy content:</p>
  
  <pre><code>flux-2017.03.23
  flux-2017.03.24
  flux-2017.03.25
  flux-2017.03.26
  </code></pre>
  
  <p>And their content (all these directories are empty):</p>
  
  <pre><code>drwxr-x--- 2 4096 Mar 31 12:00 0
  drwxr-x--- 2 4096 Mar 31 12:00 1
  drwxr-x--- 2 4096 Mar 31 12:00 2
  drwxr-x--- 2 4096 Mar 31 12:00 3
  drwxr-x--- 2 4096 Mar 31 12:00 4
  </code></pre>
  
  <p>Finally, when I do a <code>du -sh *</code> in the indices directory, I see that all my deleted indices weight is 24KB (size of 6 directory on Linux). The not deleted indices weight is ~40MB.</p>
  
  <p>For information, my Elastic Search indices used for searching are stored in another place on the computer.</p>
  
  <p>Am I doing something wrong?</p>
  
  <p>My ElasticSearch version: <code>2.4</code></p>
  
  <p>And this is the way I create and delete Snapshot:</p>
  
  <p>Snapshot creation:</p>
  
  <pre><code>curl -s -H "Content-Type: application/json" -X PUT -d "{\"indices\": \"flux-2017.03.23\", \"ignore_unavailable\": false, \"include_global_state\": false}" http://0.0.0.0:9200/_snapshot/backup_flux/backup_flux-2017.03.23?wait_for_completion=true
  </code></pre>
  
  <p>Snapshot deletion:</p>
  
  <pre><code>curl -s -H "Content-Type: application/json" -X DELETE http://0.0.0.0:9200/_snapshot/backup_flux/backup_flux-2017.03.23
  </code></pre>
  
  <p>Regards.</p>