I can't delete them without errors.

I don’t want to re-post the code, so please visit this forum. I can’t get them to disappear without errors printing to the console, so please help me if you can. I’d recommend testing it first…