How to reclaim disk space for an index?

I found out that this was related to the translog, which was occupying a lot of disk space.

I followed the reccommendations on this link:

I set my maximum retention size to 50mb and my maximum retention age to 60m. This made the translog size to decrease from almost 30gb to 2.5gb

Thanks a lot