Remove the Public Folder Databases

Updated: August 19, 2010

Applies To: Windows SBS 2008

Before you can uninstall Exchange Server, you must remove the Public Folder Databases. To remove the Public Folder Databases, complete the following procedure.

Warning

The Remove-PublicFolder cmdlet will remove the public folder data from all servers in your organization. If you want to remove data from only one server, use the Set-PublicFolder –replicas command. For more information, see Set-PublicFolder

To remove the Public Folder Databases

  1. Click Start, click All Programs, click Microsoft Exchange Server 2007, right-click Exchange Management Shell, and then click Run as administrator.

  2. At the command prompt of the Exchange Management Shell, type the following command:

    Get-PublicFolder -Server <ServerName> "\" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Server <ServerName>  -Recurse -ErrorAction:SilentlyContinue
    

    Replace <ServerName> with the name of your server.

  3. At the command prompt of the Exchange Management Shell, type the following command:

    Get-PublicFolder -Server <ServerName> "\Non_Ipm_Subtree" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Server <ServerName>  -Recurse -ErrorAction:SilentlyContinue
    

    Replace <ServerName> with the name of your server.