nRFConnect how to remove custom boards from build command

When I add a path for custom boards via the nRFConnect extension, then remove it, it appears that the path list included in the west build command that the extension runs is not updated accordingly, meaning that paths are only ever added and not removed based on the setting in VSCode. That results in the following warning for every path that has ever been added which now no longer has a 'boards' subdirectory, when I press the pristine build button in the extension.

CMake Warning at C:/ncs/v2.2.99-dev3/zephyr/cmake/modules/boards.cmake:88 (message):
BOARD_ROOT element without a 'boards' subdirectory:

{A_PATH}

Hints:

- if your board directory is '/foo/bar/boards/<ARCH>/my_board' then add '/foo/bar' to BOARD_ROOT, not the entire board directory
- if in doubt, use absolute paths
Call Stack (most recent call first):
C:/ncs/v2.2.99-dev3/zephyr/cmake/modules/zephyr_default.cmake:108 (include)
C:/ncs/v2.2.99-dev3/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
C:/ncs/v2.2.99-dev3/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
CMakeLists.txt:5 (find_package)

Where is the persistent data stored for the command that's bound to this button and am I missing an intended way for the user to reset it?

Related