how can I delete e-mail with undesired attachments in outlook or take out the attachments with certain extensions.

I have tried using outlook security but it only blocks the attached files from being accessed or saved in outlook. The attachments are still downloaded with the e-mail. I have done this and virus e-mail attachments will still execute when the e-mail is opened.

I would appreciate any guidance.