Indian equity indices erased most of the intraday gains to end marginally higher with Nifty around 24,050 on June 25.