Thai soldiers cleared landmines as they prepared to reopen a temple on disputed land captured during clashes with Cambodia.