I answered my own question: create an invisible context with remove-layer =
3. For anyone curious:
\version "2.24.0"
\layout {
\context {
\name "NullStaff"
\type "Engraver_group"
\consists Axis_group_engraver
\override VerticalAxisGroup.staff-affinity = #DOWN
}
\context {
Hi all,
When condensing staves using remove-layer as described here
https://lilypond.org/doc/v2.24/Documentation/notation/modifying-single-staves#hiding-staves,
what is the best way to temporarily hide the combined staff as well as the
individual staves? E.g. for a particularly crowded system