• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 10935
  • Last Modified:

Delete Folder using Powershell from User Mailbox Exchange 2010

My archive software creates a folder within each of our user's mailbox.  I want to be able to delete this folder that has the specific name "MailboxArchive" at the Exchange level.  Is there a way to accomplish this using PowerShell?  Something like, if mailbox contains folder called MailboxArchive, then delete.

Thanks.
0
fireguy1125
Asked:
fireguy1125
2 Solutions
 
Jason RybergCommented:
Based on my searches, there's no built-in cmdlet in Exchange 2010 for deleting FOLDERS from user's mailboxes.  Deleting emails? Sure.  But not folders.

In order to delete folders, you'll have to import the Exchange web services API and call it from PowerShell, as detailed in this technet forum.
0
 
michaelalphiCommented:
Not sure and have not tested ever but you can check this script available at here: Cleaning out the empty folder with EWS
0
 
fireguy1125Author Commented:
Thanks
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now