Don't ever do this on a current bare metal system!
Even if you have everything backed up, plan on re-installing anyway, and just want to see what happens.
On a modern EFI system, recursively deleting everything (including the EFI path) has a chance of permanently hard-bricking your computer! https://github.com/systemd/systemd/issues/2402