So basically you need to rename and remove accounts which is possible but you should make sure you are logged in as admin and you are not editing the same account to which you are logged in.
In the Control Panel, click on “User Accounts”. Then click on “Change account type”. Depending on your system’s security settings administrator rights may be required for this step.
In the next window, left-click the local user account you wish to change. Windows 11 will open a menu to customize the account. Select the “Change the account name” option.
Once you have renamed the account then you can follow the same step to remove the account from the PC.
Create a local user or administrator account in Windows https://support.microsoft.com/en-us/windows/create-a-local-user-or-administrator-account-in-windows-20de74e0-ac7f-3502-a866-32915af2a34d
Hope this resolves your Query !!
---------------
--If the reply is helpful, please Upvote and Accept it as an answer–