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 a specific day:
curl -u <username>:<password> -XDELETE https://<indexer IP>:9200/wazuh-alerts-3.x-2018.07.12 -k
How to delete two specific days:
curl -u <username>:<password> -XDELETE https://<indexer IP>:9200/wazuh-alerts-3.x-2018.07.11,wazuh-alerts-3.x-2018.07.11 -k
How to delete all July:
curl -u <username>:<password> -XDELETE https://<indexer IP>:9200/wazuh-alerts-3.x-2018.07.11,wazuh-alerts-3.x-2018.07* -k
Note: since you can use a wildcard (*), deleting a month is easy as you can see in the above curl command.
It is also advisable to setup index management for proper log management using the guide
Here
I hope this helps