Prosecutors moved to throw out more than 21,000 drug convictions, five years after a chemist at the state drug lab was caught tampering with evidence and falsifying tests.

The state’s highest court had ordered district attorneys in seven counties to produce lists by Tuesday indicating how many of approximately 24,000 cases involving Annie Dookhan they would be unable or unwilling to prosecute if the defendants were granted new trials.