Remove last public folder from Exchange

fsdg 1,026 Reputation points
2021-11-22T08:30:48.407+00:00

Hello,

Exchange 2010 to 2016 migration
.
I moved all active mailboxes to 2016 Exchange.

I have small public folder database on Exchange 2010(.edb- 290 MB) and only 5 folders in public folder structure.
My client dont need public folders so there is no need to migrate public folder
How to remove last public folder in this scenario?
What to pay attention during this task?
Thank you

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,786 questions
0 comments No comments
{count} votes

Accepted answer
  1. Kael Yao-MSFT 37,691 Reputation points Microsoft Vendor
    2021-11-23T05:23:16.677+00:00

    Hi @fsdg

    If you would like to remove the public folders and public folder database, you can use the following commands in EMS on Exchange 2010 server:

    Get-PublicFolder -Server <Exchange 2010> -Recurse -ResultSize Unlimited | Remove-PublicFolder -Server <Exchange 2010> -Recurse -ErrorAction:SilentlyContinue  
      
    Remove-PublicFolderDatabase <Public Folder Database name> -RemoveLastAllowed  
    

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Amit Singh 5,071 Reputation points
    2021-11-23T03:56:39.503+00:00

    You need to remove the arbitration mailbox and the system mailboxes. This can be done by using the PowerShell cmdlet below.

    Get-Mailbox -Arbitration | Disable-Mailbox -Arbitration –DisableLastArbitrationMailboxAllowed
    

    Then you go ahead to remove the mailbox database and the public folder.

    There are two ways to solve this issue, the smooth way, and the hard way. I would go for the usual way, and if it fails, go for the hard way.

    Method 1 – The smooth way - Using Set-MailboxDatabase
    Method 2 – The hard way - Using ADSIEdit.msc

    Both methods are explained in detail in this How to remove public folder database after Exchange migration? Article.


    Please mark as "Accept the answer" if the above steps helps you. Your suggestion will help others also !


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.