I followed this article to create a database mail for SQL Server Express 2017.
I got it working but before that I had tried to create accounts and different profiles.
How I do I list all database mail profiles id and account ids so I can delete the old messed up ones.