This error belongs in the previous program

What do you do when you can’t find a library, so you open a new file and don’t include that library in the program, but build fails because it can’t find that library, which it doesn’t need?
(Please don’t grammar this sentence.)

I deleted PIO and confirmed default, reopened and then restarted.