To delete or remove a user account in Windows 11, you need administrator rights. Log into an administrator account and try again. It should fix the problem.