To delete mail which are in queue. this code help to remove all unsent email address.
First check log with help of following query
SELECT * FROM msdb.dbo.sysmail_event_log See all unsent mail and count
select * from msdb.dbo.sysmail_unsentitems;
select count(*) from msdb.dbo.sysmail_unsentitems;Finally remove unsent mail delete from msdb.dbo.sysmail_unsentitems;