Delete emails

Rising Flight 4,816 Reputation points
2022-12-21T16:03:16.963+00:00

Hi All

i have a shared mailbox and the shared mailbox has fully utilized the quota i.e 50GB.
Litigation hold is disabled for the mailbox so i set retain deleted items to 0. i want to keep the emails for 2 weeks and deleted rest of the emails. will outlook rule work to delete the emails. experts guide me how to delete the emails.

Set-Mailbox user1@Company portal .com -UseDatabaseRetentionDefaults $false -SingleItemRecoveryEnabled $true -RetainDeletedItemsFor 0

Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,463 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,737 questions
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,788 questions
{count} votes

Accepted answer
  1. Amit Singh 5,071 Reputation points
    2022-12-22T10:35:17.57+00:00

    To create an auto-archiving policy that deletes older emails automatically in Outlook, do the following for each folder you want to clean automatically.
    273312-unnamed-5.png

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Faery Fu-MSFT 19,006 Reputation points
    2022-12-22T05:56:26.733+00:00

    Hi @Rising Flight ,

    Do you want to use outlook built in feature to delete emails, you can use AutoArchive to do this automatically.

    Go to File > Options > Advanced.
    Under AutoArchive, click AutoArchive Settings.

    For more information about the AutoArchive feature, see: AutoArchive settings explained
    (Note: If you have multiple Exchange accounts in your Outlook profile and configure AutoArchive for one account, all other Exchange accounts will have the same settings applied automatically. )

    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.