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.