Every single handle leaks so every single handles has a specified function to remove the handle, i.e. groups have DestroyGroup , locations are RemoveLocation etc
For TextTags, setting the LifeSpan gets WC3 to clean them up automatically. As soon as you set it the handle index is recycled to be available for others.