Clean up the generated blocks.