Thanks for posting your question in the Microsoft Q&A forum.
This is the best article to delete your Microsoft account
https://www.windowscentral.com/how-close-and-completely-delete-your-microsoft-account
In addition, you can follow this video:
https://youtu.be/di46u5k_kfc?si=qhKrb3tmWMYnW2iC
** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful **