Removing directories from config and kernel search paths

Can anyone answer (either here or over on stack overflow) how to remove directories from the config and kernel search paths? I’ve got a lot of junk hanging around due to my work’s use of roaming profiles on our window’s machines and I want to limit where Jupyter looks for kernel and config files. https://stackoverflow.com/questions/78615101/how-to-remove-directories-from-jupyter-config-and-data-search-paths