Public Folder - delete items immediately

MarioL 96 Reputation points
2020-11-12T13:34:50.463+00:00

Hi,

I'm an exchange admin and I want to delete some items in a public folder, because the public folder mailbox limit is exceeded. After deletion, the usage is still the same, this is because deleted items are only marked as "hidden" and "deleted" an remain still in the mailbox.

How can I delete those items permanently to get more free space? My try was to set the property RetainDeletedItemsFor to 0 (after I've set the parameter UseDatabaseRetentionDefaults to false), but after a few days the usage is still the same. What did I do wrong?

Thanks in advance!

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,631 questions
{count} votes

Accepted answer
  1. MarioL 96 Reputation points
    2020-11-30T13:18:17.21+00:00

    Hi @Yuki Sun-MSFT ,

    yeah I know I've exceeded the supported limit, that's the main reason why I've posted my question. This behaviour is hard to explain to a user which cleans up his public folder and only see the the limit in outlook client. I do not want to create another public folder mailbox, the user should delete his trash :-)

    Thanks for your help!

    Best Regards
    Mario

    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Yuki Sun-MSFT 41,051 Reputation points Microsoft Vendor
    2020-11-13T07:14:54.783+00:00

    Hi @MarioL ,

    What's the version of your Exchange server?

    After deletion, the usage is still the same

    Do you mean after deleting some items from the public folder, the mailbox usage of the public folder mailbox didn't change when checking via EAC?
    Based on my knowledge and test, normally the deleted items won't take up the quota of the mailbox itself. It takes up the recoverable items quota of the mailbox instead.

    Given this, could you please check the folder size using the powershell below and see if it has changed?

    Get-PublicFolderStatistics -Identity <PublicFolderIdParameter> | Format-List *size*, *count*  
    

    And verify the current mailbox quota set for the mailbox using:

    Get-Mailbox -PublicFolder <PublicFolderName> | FL *quota*  
    

    Besides, in case your concern is indeed about the recoverable items quota, please try the following steps and check the result:

    1. Open the public folder using Outlook desktop client.
    2. Select the public folder and click Recover deleted items in the ribbon bar.
    3. Select items to delete, select Purge Selected Items, and select Ok.

    If an Answer is helpful, please click "Accept Answer" and upvote it.
    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.


  2. MarioL 96 Reputation points
    2020-11-17T16:23:25.86+00:00

    Hi @Yuki Sun-MSFT ,

    our current exchange server version is Version 15.1 ‎(Build 1979.3)‎.

    Today I've compared the usage of the public folder on my outlook client with EAC. On the client I get a usage which is about 14 GB less than I can see in the EAC.

    I run following command to get the usage of each folder under my public folder root folder:

    Get-PublicFolder -Identity "XXX" -Recurse | Get-PublicFolderStatistics | select Name,FolderPath,@{name="TotalDeletedItemSize (MB)"; expression={[math]::Round(($.TotalDeletedItemSize.ToString().Split("(")[1].Split(" ")[0].Replace(",","")/1MB),2)}},@{name="TotalItemSize (MB)"; expression={[math]::Round(($.TotalItemSize.ToString().Split("(")[1].Split(" ")[0].Replace(",","")/1MB),2)}}

    The sum of the single folders (TotalDeletedItemSize + TotalItemSize) is the same as I can see on my outlook client. So where are the missing 14 GB?

    Best Regards
    Mario


  3. MarioL 96 Reputation points
    2020-11-26T13:42:44.51+00:00

    Hi @Yuki Sun-MSFT ,

    here is the output from powershell:
    43064-powershell.jpg

    here from outlook:
    42997-outlook.jpg

    There are several public folders in the PF-mailbox, but everything under one single root folder. I thought there would be other public folders with the same pf-mailbox as content mailbox, but it is not.

    Best Regards
    Mario


  4. MarioL 96 Reputation points
    2020-12-18T10:06:40.633+00:00

    Hi @Yuki Sun-MSFT ,

    after the parameter RetainDeletedItemsFor (30) of mailbox database has reached (public folder mailbox has a limit of 1) , the limits in Powershell/EAC and Outlook are identical. Therefore deleted items must have an effect on mailbox size. How can I clean up this space manually before the limit of 30 days is reached?

    49492-2020-12-18-10-54-44.png

    0 comments No comments

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.