question

RogerRoger-2394 avatar image
0 Votes"
RogerRoger-2394 asked emilyhua-msft edited

Delete emails

Hi All

I have an office 365 unified group and the mailbox of office365 unified group is full.
is there any way where i can create an outlook rule to delete the emails after 7 days.
since the mailbox is full is it possible to purge the whole mailbox from powershell. the mailbox has thousands of emails and its difficult to delete all the emails.

office-sharepoint-onlineoffice-exchange-server-administrationoffice-exchange-online-itpro
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ZhengqiLou-MSFT avatar image
0 Votes"
ZhengqiLou-MSFT answered ZhengqiLou-MSFT commented

Hi @RogerRoger-2394 ,

Good day!

You could create retention policies for O365 groups with the compliance center:
https://compliance.microsoft.com/compliancepolicies

M365 compliance > Policies > Data > Retention > Retention Policies:
109699-image.png
And then choose to retain for a period or delete after a certain age:
109728-image.png

The policy may need almost one day to take effect.

We could also use the retention policy with Only delete items when they reach a certain edge option to delete the old messages.

Best regards,
Lou


If the response 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.


image.png (63.5 KiB)
image.png (43.4 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @RogerRoger-2394 ,

In addition, if you are a owner of this group, you could directly delete messages in it.

Do the suggestions above help? If the issue has been resolved, please click “Accept as answer” to mark helpful reply as an answer, this will make answer searching in the forum easier and be beneficial to other community members as well.

Regards,
Lou


If the response 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.

0 Votes 0 ·