I have multiple ES clusters indexing data and cross-cluster search helps to retrieve documents from all clusters. Now, I would like to delete a few documents and need to delete from multiple clusters. However I get the following error when I use "remote-index-name:index-name" in the delete_by_query API's index name:
version conflict, current version [-1] is different than the one provided 
The version I get from the second cluster is 2. How does ES get version -1 in this case (is this an bug in cluster-wide settings?)
My delete call is like so:
curl -sX POST 'localhost:9200/remote-cluster-*:my-index/_delete_by_query?pretty' -H "Content-Type: application/json" -H "Accept: application/json" --data "@params.json"
And I have remote-cluster-1, remote-cluster-2, and remote-cluster-3 defined in persistent settings for cross-cluster search.