How To Remove Multiple Public Folder

By | 21 September, 2012

I found one problem when I try to simulate implement two Public Folder in Exchange 2007. When I finish and want to delete test Public Folder, the Public Folder cannot delete with error :

The public folder database Database_Name cannot be deleted.
Error:
The public folder database specified contains folder replicas. Before deleting the public folder database, remove the folders or move the replicas to another public folder database.

So, after some research I found that we need to remove all folder in Public Folder before we can remove it.

Here are the step taken :

  • Remove all Public Folder replicas from the server using the following command:

Get-PublicFolder -Server “SERVER NAME” “\” -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Server “SERVER NAME” -Recurse -ErrorAction:SilentlyContinue

  • remove all System Folders using the following command:

Get-PublicFolder -Server “SERVER NAME” “\Non_Ipm_Subtree” -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Server “SERVER NAME” -Recurse -ErrorAction:SilentlyContinue

  • To verify all Public Folders have been deleted:

Get-PublicFolderStatistics -Server “SERVER NAME” | fl

At times the replica clean-up may take a little while. If you still see replicas after running this command, run it again in 10-15 minutes.

More info : HERE

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.