During normal operation, Wazuh have an Index Management Policy that can be configured to achieve this at the same time by keeping data available for different periods of time and under different circumstances.
On the other hand, you can delete all the indexes data manually. THIS CAN'T BE REVERTED. WARNING. ONCE DELETED, IT CAN'T BE RECOVERED UNLESS YOU MAKE A BACKUP BEFORE.
This will erase all data and it's not encouraged unless you know what you are doing.
sudo systemctl stop wazuh-manager
Delete index data
sudo rm -rf /var/ossec/data/*
Start Manager
sudo systemctl start wazuh-manager
Thank you