Is it possible to remove unused modules from VS build?

I remember seeing someone talk about a file you can use that excludes something from either packaging or building of a project but can’t find it again.

In the interest of lowering build times especially the engine with its 1800 things to compile is it possible to safely disable unused modules like VR?

I too would like to know this. It’s frustrating when iterating on development of a plugin that every build kicks of checking of dozens of plugins that I’m not interested in. All of them are built and I’d like to do the equivalent of ‘unload project’ that VS has, but with the Unreal build system. Plz send halp!
e.g. Currently 24 build tasks kick off, just to build mine (the 25th):

1>------ Build started: Project: ShaderCompileWorker, Configuration: Development_Program x64 ------
2>------ Build started: Project: TestPAL, Configuration: Development_Program x64 ------
3>------ Build started: Project: UnrealCEFSubProcess, Configuration: Development_Program x64 ------
4>------ Build started: Project: UnrealFileServer, Configuration: Development_Program x64 ------
5>------ Build started: Project: UnrealHeaderTool, Configuration: Development_Program x64 ------
6>------ Build started: Project: UnrealLightmass, Configuration: Development_Program x64 ------
7>------ Build started: Project: UnrealPak, Configuration: Development_Program x64 ------
8>------ Build started: Project: UnrealVersionSelector, Configuration: Development_Program x64 ------
9>------ Build started: Project: UnrealWatchdog, Configuration: Development_Program x64 ------
10>------ Build started: Project: UnrealFrontend, Configuration: Development_Program x64 ------
11>------ Build started: Project: BootstrapPackagedGame, Configuration: Development_Program x64 ------
12>------ Build started: Project: BlankProgram, Configuration: Development_Program x64 ------
13>------ Build started: Project: BuildPatchTool, Configuration: Development_Program x64 ------
14>------ Build started: Project: CrashReportClient, Configuration: Development_Program x64 ------
15>------ Build started: Project: MinidumpDiagnostics, Configuration: Development_Program x64 ------

etc. etc.

Hmm, I’ve sort of discovered a hacky way to do this. Noticing that some of the later projects in my comment above actually say ‘Project not selected to build for this solution configuration’. In VS you can turn off a bunch of projects in the Build → Configuration Manager dialog. I’m guessing they may return if you rebuild all the projects at any point. My iteration time seems to be about 90s now. Have to do I suppose.