I am working on a website redesign. When I uploaded my code in production, I didn't know I must make a redirect between www and non-www URL.

Since I have corrected that problem, Google has indexed both www and non-www URLs.

How can I tell google to unindex all www URLs and only reindex non-www URLs?