Delete 7 days old data everyday

That will be very inefficient but you can call DELETE BY QUERY API from a script that you can put in your crontab or from any Java app you want.

Using daily indices and dropping them every 7 days will be much much more efficient.