Remove all installed versions of systemd-boot from the EFI system partition

bootctl

sudo bootctl remove

click the source code to copy install bootctl on any operating system with command-not-found.com