You cannot fully delete an Xbox Live / Microsoft account yourself. You can close it, which marks it for permanent deletion after 60 days.
Remove payment methods, set a random password, enable 2FA. The account sits inert.
Note: This deletes the Microsoft account, not just Xbox profile. All linked services (OneDrive, Office, Skype) are affected.