Exporting Code through Snap! includes old, deleted code

When I attempt to export my code to submit to College Board the HTML file it produces includes the code I want, but also includes older code I've deleted.

Has anyone else had this issue? Can someone help me export my final project code without the old, deleted code?

Thank you.

I figured it out. I needed to click Unused Blocks and it got rid of the old code completely. Not sure why just deleting it didn't work, but I have what I need now.