Solved

Mass delete email

Posted on 2014-11-25
2
111 Views
Last Modified: 2014-11-25
We are looking for a way to mass remove an email, sent in error, whether it is read or not. We are not looking for a recall.
We are running exchange 2010 sp3 rollup 7 on server 2008R2
0
Comment
Question by:colmisdiv
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 29

Expert Comment

by:becraig
ID: 40465359
#give yourself the required permissions first
Get-Mailbox -ResultSize unlimited | Add-MailboxPermission -User MyAdmin -AccessRights FullAccess -InheritanceType all


#Then do the delete
#  -TargetMailbox MyBackupMailbox -TargetFolder DeleteMsgs   These fields are expecting that you have a mailbox and folder where you move the mail before deleting you can remove these
Get-Mailbox  -ResultSize Unlimited | Export-Mailbox -SubjectKeywords "Your email subject" -IncludeFolders "\Inbox" -StartDate "11/24/2014" -EndDate "11/25/2014" -DeleteContent -TargetMailbox MyBackupMailbox -TargetFolder DeleteMsgs -Confirm:$false

Open in new window



More info on message deletion:
http://blogs.technet.com/b/exchange/archive/2010/10/27/3411398.aspx
0
 
LVL 29

Accepted Solution

by:
becraig earned 500 total points
ID: 40465481
My comment is of course based on the idea you are trying to remove the email from all users mailboxes in your organization.

If that is the case then the above post is perfect.
0

Featured Post

Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
AD Account lockout 11 63
Migration from Lotus Note to Exchange 4 26
exchange 2007 , mailbox 3 32
Skype for Business server 6 41
This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
Read this checklist to learn more about the 15 things you should never include in an email signature.
This video discusses moving either the default database or any database to a new volume.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question