title: Index not getting deleted in elasticsearch using delete API
body: <p>I created an index </p>
  
  <pre><code>curl -XPUT 'http://localhost:9200/tipindex/' -d '{
       "settings" : {
          "index" : {
              "number_of_shards" : 1,
              "number_of_replicas" : 1,
            }
       }
    }
  }'
  </code></pre>
  
  <p>and then I associated a river with the index using the following command : </p>
  
  <pre><code>curl -XPUT "localhost:9200/_river/tipindex/_meta" -d '
  {
  "type": "mongodb",
  "mongodb": {
      "host": "&lt;machine-name&gt;",
      "port": "27017",
      "db": "mydb",
      "collection": "tips"
  },
  "index": {
      "name": "tipindex",
      "type": "tips"
   }
  }'
  </code></pre>
  
  <p>The index is properly created and all the documents are indexed. However, if I delete the index using : </p>
  
  <pre><code>curl -XDELETE '&lt;machine-name&gt;:9200/tipindex/'
  </code></pre>
  
  <p>It completes with <code>{"ok":true,"acknowledged":true}</code></p>
  
  <p>ES log : [tipindex] deleting index</p>
  
  <p>Now if I execute curl -XDELETE 'localhost:9200/tipindex/'</p>
  
  <pre><code>{"error":"IndexMissingException[[tipindex] missing]","status":404}
  </code></pre>
  
  <p>which means that index is deleted.</p>
  
  <p>But if I restart elasticsearch the index is created again with 0 documents and no mapping.</p>
  
  <p>If I recreate the index and associate a river, then no documents are indexed. ES log do not show any error as well.</p>
  
  <p>Now my questions are : </p>
  
  <ul>
  <li>Why is the index not getting deleted ?  </li>
  <li>When I recreate the index,why are the documents not getting indexed again?</li>
  <li>How can I delete an index forcefully?</li>
  </ul>