Link to home
Create AccountLog in
Avatar of decioracy
decioracyFlag for Brazil

asked on

how delete messages from a mailbox without outlook

Hi,

I have an user that has 1 million emails in an inbox sub folder .... how can I delete those emails without Outlook (Outlook freezes when I am at that folder).

Environment :

Exchange 2007

Thank you

Racy
Avatar of sg08234
sg08234
Flag of Germany image

Can't you delete the complete mailbox?
Avatar of decioracy

ASKER

Hi,

It is not possible ... I need to delete just messages in that folder.

Thank you
Outlook freeze doesn't means it is not working. Leave it as it is, so deletion can be completed. Else use OWA.
Extract the data to PST using some time frame or other filters and try to reduce the size of the mailbox first as nothing much would work outside

- Rancy
On the exchange server, you can use Powershell to export that mailbox to a pst and then delete the mailbox or setup a rule for that mailbox to delete mail after it's so old.
You can delete the powershell command to delete the emails. Make sure the admin account that you are using has full access on the mailbox. Then, you may have a test mailbox to export the contents to that mailbox before deleting. You can use export to PST but that command has limitations on the computer from which you can execute it.

Export-Mailbox -Identity <MailboxIdParameter> -IncludeFolders '\Inbox' -TargetFolder <Target_Folder_Name> -TargetMailbox <MailboxIdParameter> -DeleteContent
You can try to use retention policy tag and policy to move or delete them.
Environment is Exchange 2007 and retention policy tags are introduced in Exchange 2010.
Hi,

export is not working with 1 million messages ... I tried that and powershell created an exception.

OWA for that big mailbox is not an option ... now I am trying MFCMapi to delete the whole folder ...
What if you only copy the remaining (small?) part of the mails into a new PST file?
Have you been able to reduce the amount of mail in that account?
ASKER CERTIFIED SOLUTION
Avatar of decioracy
decioracy
Flag of Brazil image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Hi,

None of other options worked