Thank you for reaching out to the community forum!
I understand that you want to remove an organization from your Azure and Teams accounts.
To leave the organization with your private account you can refer the below post.
Leave organization with private account
You can Manage organizations for a work or school account in the My Account portal
You can leave an organization in Microsoft teams for more information please refer below post
Hope this helps. Do let us know if you any further queries.
Thanks,
Akhilesh.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.