Olañeta did not relinquish his command even after the Peruvian royalists included him and his forces in the capitulation agreement following their defeat in the Battle of Ayacucho in 1824, the final battle of the wars of independence in Latin America.
Olañeta drog inte tillbaka sina krav ens efter att de peruanska rojalisterna hade inkluderat honom och hans styrkor i kapitulationsavtalet efter deras nederlag i slaget vid Ayacucho 1824, det sista slaget i kriget om oberoendet i Latinamerika.