ESP8266 choosing incorrect libraries

I am trying to compile for an ESP8266, but the IDE is selecting the wrong libraries. It can see the correct ones, and I have set the correct board in the tools menu. I get the following message on compile

Multiple libraries were found for "Wire.h"
 Used: /Users/paul/Documents/Arduino/libraries/Wire
 Not used: /Users/paul/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/libraries/Wire

Which is causing the following compile error

fatal error: avr/io.h: No such file or directory  -> candidates: []

 #include <avr/io.h>

If I rename the AVI Wire library folder, then the IDE will select the esp Wire library, which is a work around for now, but is there a better fix for this?

Using IDE v 1.8.10 on Mac Catalina

Regards
Paul

why do you have Wire library in your libraries folder? delete it. every core has own Wire library bundled

Thats a good point, I also had an SPI library at that location. Deleted both and problem solved.

Thanks Juraj