Deleting all the documents in java

Hi ,

I am new to elastic search.

Want to delete all the documents , where ownerId = 1, ownerId is a increasing number. Want to delete all the rows corresponding to that ownerId when the owner is deleted from the application.

These documents are part of multiple indexes. But all the indexes has same alias name.

I want to implement in java.

please let me if it is not clear.

Any Suggests ?

Thanks.