×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Issue removing large deleted items folder's contents

Issue removing large deleted items folder's contents

Issue removing large deleted items folder's contents

(OP)
Hello All,
We have a user our exchange admin let slip through the cracks. He has eaten almost 115gb of space and about 100gb of it is in the Sent and Deleted folders. We are having an issue getting rid of these. Tried the obvious of right click on the Deleted folder and told it to empty but it errors out. Tried selecting a larger amount and deleting manually and no luck. Is there any Powershell command I am missing that can assist in bulk deletion of these?

Learning - A never ending quest for knowledge usually attained by being thrown in a situation and told to fix it NOW.

RE: Issue removing large deleted items folder's contents

(OP)
Ended up going with the following queries. This one just gave you the results that could be deleted: search-mailbox YourUserName -SearchQuery {Received:"3/1/2022..4/1/2022"} -EstimateResultOnly

This one with the changed last flag actual does the deletion: search-mailbox YourUserName -SearchQuery {Received:"3/1/2022..4/1/2022"} -DeleteContent

This basically allowed us to delete around 10,000 emails at a time which in our case was around 8.5 - 10GB of data a swoop. Did this for a few months and got his mailbox back in line.

Learning - A never ending quest for knowledge usually attained by being thrown in a situation and told to fix it NOW.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close