Login with the Exchange Control Panel URL below -

Login with Admin Credentials -

Double Click on Discovery Management and Add Administrator as a member of Discovery Management and Save it


===============
To Add a User in Mailbox Import Export Role – Run in Exchange Management Shell
New-Managementroleassignment –Role “Mailbox Import Export” –User “Administrator”

===========
Close and Reopen the Exchange Mangement Shell – so that the new commands will start working
===========
Now Before Deleting in Bulk , We can use a log only switch to verify how many Mails we are going to delete
and to verify the we are going to delete the right one
Get-mailbox | search-mailbox –searchquery “Subject:’virus’” –Logonly –Targetmailbox administrator –Targetfolder Inbox
Now this will show how many mailboxes have this content

A mail will be generated to Administrators inbox with Item Count As shown below –

=======
Now we will go ahead and delete it
Get-mailbox | search-mailbox –searchquery “Subject:’virus’” –DeleteContent

Before — From All the Mailboxes

Now its gone from All the mailboxes

Reference link -
http://technet.microsoft.com/en-us/library/dd298173.aspx
Hope it helped you to understand better !!
If you feel its too confusing – Check out the Automated Script to do these tasks for you
Discovery Search Simplified Script to Delete a Specific Email and other Tasks – Exchange 2010
Regards
Satheshwaran Manoharan