# Purge Office 365 Emails with Slack

**URL:** <https://discuss.rapid7.com/t/purge-office-365-emails-with-slack/57037>\
**Category:** InsightConnect\
**Tags:** InsightConnect\
**Created:** [January 15, 2026, 2:18pm UTC](https://discuss.rapid7.com/t/purge-office-365-emails-with-slack/57037 "2026-01-15T14:18:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bshaffer1](https://discuss.rapid7.com/letter_avatar_proxy/v4/letter/b/ee59a6/32.png) [@bshaffer1](https://discuss.rapid7.com/u/bshaffer1)\
**Post date:** [January 15, 2026, 2:18pm UTC](https://discuss.rapid7.com/t/purge-office-365-emails-with-slack/57037/1 "2026-01-15T14:18:42Z")

</div>

We have identified an issue with the **Purge Office 365 Emails with Slack** extension (version **1.2.0** ). This extension functioned correctly until sometime late last year.

The extension is still able to search for the targeted emails, and it correctly prompts us to confirm whether we want to purge them. After confirming, it displays a message indicating the emails were successfully deleted—however, no emails are actually removed.

We also attempted to purge the emails using our PowerShell script, which had previously worked but is now failing in the same way. After opening a case with Microsoft Support, we were informed that we must add the parameter **`-EnableSearchOnlySession`** to our script; without this parameter, purging emails is no longer possible.

After updating our PowerShell script with this parameter, we are again able to purge emails from O365 successfully.

**Can this parameter be added to the extension so that it will function correctly again?**
