Just design the APIs similarly to the DeleteByQuery APIs ( HSEARCH-3304 Open ). We need APIs at the POJO level in particular.
Here are the index-scoped operations I have in mind: