Put them back on dirty pasture for 48 hours. That should be long enough for them to poo out what they need to poo out, and for them to pick up a small amount of worms back up off the pasture.
If you can leave land for 6 weeks that would be ideal, but it depends on what you have available, and how quickly the grass is growing. And it depends on how short you graze the grass - the parasites live at the bottom few centimetres of the grass, like around 2cm (eblex probably have a document on this!), so as long as you don't graze it too hard you can get away with fewer weeks. I think I'm on a 3-4 week rotation at the moment, but as the grass is growing fast they never get it right down to the risk areas.