Don't know if the next solution matches your goal but since Wazuh generates daily indices you
As you can see, a Wazuh index name is composed using the next pattern:
wazuh-alerts-3.x-YYYY.MM.DD
This means you can delete specific days as I said.
How to delete specific day:
curl -XDELETE elastic_ip:9200/wazuh-alerts-3.x-2018.07.12
How to delete two specific days:
curl -XDELETE elastic_ip:9200/wazuh-alerts-3.x-2018.07.11,wazuh-alerts-3.x-2018.07.11
How to delete all July:
curl -XDELETE elastic_ip:9200/wazuh-alerts-3.x-2018.07.11,wazuh-alerts-3.x-2018.07*
Note: since you can use wildcard (*), delete a mont is pretty easy as you can see in the above curl command.
If the above commands don't match your desired goal because you want to delete specific documents from specific day, let us know
and we can drive you in the right way.
Regards,
Jesús