Delete invite

Glenn Maxwell 13,141 Reputation points
2023-04-18T21:09:35.7766667+00:00

Hi All

i am using exchange 2016 hybrid environment. we create users in onprem and migraet to online. I have a meeting invite and i need to delete it from all users mailboxes. is the below syntax correct.

Exchange Online
Exchange Online
A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.
Outlook | Windows | Classic Outlook for Windows | For business
Exchange | Exchange Server | Management
Exchange | Exchange Server | Management
The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.
Exchange | Hybrid management
Exchange | Hybrid management
The administration of a hybrid deployment that connects on-premises Exchange Server with Exchange Online, enabling seamless integration and centralized control.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Yuki Sun-MSFT 41,451 Reputation points Moderator
    2023-04-19T06:10:38.1733333+00:00

    Hi @Glenn Maxwell

    Start-ComplianceSearch doesn't have the parameter "-Name", so you'll need to replace it with "-Identity" instead and then go ahead:

    New-ComplianceSearch -Name "MR" -ExchangeLocation "ALL" -ContentMatchQuery 'From:"******@contoso.com" AND subject:"Test A:1"' 
    
    Start-ComplianceSearch -Identity "MR" 
    
    New-ComplianceSearchAction -SearchName "MR" -Preview 
    
    New-ComplianceSearchAction -SearchName "MR" -Purge -PurgeType SoftDelete -Force
    
    

    Based on my test, the commands above can work properly:
    1

    2


    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.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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