Not with wazuh -- but I'd recommend running a cronjob for the local alerts:
0 1 * * * find /var/ossec/logs/alerts/2022/* -mtime +1 -exec rm -f {} \;
This will delete all your alerts that are older than 1 day. Adjust mtime as needed.
Then configure a index policy:
You could set the min_index_age to your 15 months as needed instead of the 365d as per the example.