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?
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
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.