Remove an Outlook profile in Control Panel > Mail?

r/sysadmin Does anyone have a PowerShell or batch script to remove an Outlook profile in Control Panel > Mail?

I am removing Office 2010 and installing Office 2021 on the computers, but the Outlook profiles are still there. See screen below:

https://ibb.co/JjwS2Df