Number of players different in print and setup mode

I was surprised to see parts that had been deleted appear as I was printing the score and parts.
A bug?

Is there a possibility that at some point you’ve created some empty part layouts, or that you’ve deleted some players from your project and when asked if you wanted to remove the part layouts you said no?

This is something I see a lot in client projects that come my way, but that I’ve never seen in projects I’ve created from scratch. I’d be surprised if this were a bug, given the number of projects I juggle.

I drag players in the trash can. I’ve never been asked about removing layouts.
How does one delete layouts and players?

You select the players, and with them selected, press the trash can button. Then a dialog prompts you to select if you either want to keep or discard the part layouts.