Disable WiFi on POE Board

Hi iam trying to upload custom config to my TTGO POE board but running into space probleme on my flash. I have a question. Why its not possible to remove wifi library on ethernet device?

[platformio]
default_envs = ttgo-poe

[env:ttgo-poe]
platform = espressif32
board = esp32dev
framework = arduino
lib_deps =
${com-esp.lib_deps}
${libraries.lora}
${libraries.ethernet}
${libraries.wifimanager32}
build_flags =
${com-esp.build_flags}
‘-DZwebUI=“WebUI”’
‘-DZgatewayLORA=“LORA”’
‘-DGateway_Name=“LORA2MQTT Gateway”’
‘-DESP32_ETHERNET=true’
‘-DMQTT_USER=“mqtt-user”’
‘-DMQTT_PASS=“HesloMqtt196455”’
‘-DMQTT_SERVER=“10.10.42.4”’
‘-DLORA_MOSI=33’
‘-DLORA_MISO=32’
‘-DLORA_SCK=14’
‘-DLORA_SS=16’
‘-DLORA_RST=4’
‘-DLORA_DIO0=2’
monitor_speed = 115200

What should i change or do next? Or am i doig something fundamentally wrong?

Hi,

You can change the partition type to min spiff:

board_build.partitions = min_spiffs.csv

It will give you more space.

Because even the ethernet devices can use WiFi when ethernet is disconnected.