title: elasticsearch logstash delete when does not exist in input
body: <p>I have an elasticsearch database and i want to delete all documents if not exists in input statement?
  Can you help me please,</p>
  
  <p>Thanks in advance</p>
  
  <pre><code>input {
  jdbc {
      jdbc_validate_connection =&gt; true
      jdbc_connection_string =&gt; "jdbc:postgresql://xxxx:xxxx/xxxx"
      jdbc_user =&gt; "xxxx"
      jdbc_password =&gt; "xxxx"
      jdbc_driver_library =&gt; "/usr/share/logstash/Drivers/postgres/postgresql-9.4.1212.jar"
      jdbc_driver_class =&gt; "org.postgresql.Driver"
      statement =&gt; "SELECT acso.usagers.id as id FROM acso.usagers WHERE acso.usagers.date_suppression is null"
      tags =&gt; ["idUsagers"]
  }}  filter {}output {
  elasticsearch {
      action =&gt; delete
      index =&gt; "usagers"
      document_type =&gt; "atms"
      doc_as_upsert =&gt; true
      document_id =&gt; "%{id}"
      hosts =&gt; "xxxxxx.example.org"}}
  </code></pre>