drop SQL Mail account thru code

i added a mail account using
msdb.dbo.sysmail_add_account_sp

i need to drop it and add it again with correct parameter. what would be the right proc to drop it?

thanks
LVL 6
anushahannaAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
LowfatspreadConnect With a Mentor Commented:
use sysmail_delete_account_sp
0
 
anushahannaAuthor Commented:
worked like a charm- thanks.
0
 
LowfatspreadCommented:
You can also use the Database Mail Configuration Wizard to delete an account.
0
All Courses

From novice to tech pro — start learning today.