The right way to lay off varies culture to culture.
I worked on a trading desk. 1:1 personal lay-offs followed by security cleaning out your desk seemed unnecessarily cruel. An e-mail out of hours—and an offer to schedule a phone call—seemed far more gentle. In other cultures, the human touch matters. Given SpaceX’s results-oriented culture, their approach seems appropriate. The goal was to prevent those not getting laid off from seeking new jobs while keeping those being laid off from panicking those staying. Letting everyone go home, finish their after-work schenanigans, and then—before recruiters have a chance to nip—deliver the news is a good balance for the relevant parameters.