This question already has an answer here:
I'm from Germany and I have an approved ESTA. I already bought flights to the US and back and I'm staying for 6 weeks. But now I'm thinking about spending around two weeks in Peru. Would it be possible to leave the US to Peru and return to the US after a few weeks with my ESTA?