Deleting documents from ElasticSearch when rows are deleted from CSV file

I have a CSV file which contains data like this:
111;Some description
112;Different description

I run Logstash as a Linux service and it loaded the data to ElasticSearch correctly. When I add new lines to the CSV file then Logstash inserts them into ElasticSearch. However, when I delete a row from the CSV file nothing happens.
How can I make Logstash delete the documents from ElasticSearch when the corresponding lines (with the same ID) are deleted from the CSV file ? Is there any way or should I do do it by myself using the ElasticSearch REST API?

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