Elon made this popular with Twitter/X. Offered a voluntary exit in the "Fork in the road" email with a deadline. The message was quite similar, that if you're not aligned with the company's [new] vision, you can choose to leave with severance.
It seems better than doing random layoffs, no?