Hi @ Guillaume BOURNIGAUD , Welcome to Microsoft Q&A forum.
Please note that currently Microsoft Q&A only support posting in English. Could you please edit your question into English? Then we can better understand the question and help you with this issue, thanks for your understanding. The following is my understanding of your question and some suggestions.If I misunderstood your question, please feel free to correct me.
You can use Compliance Search to search for meeting invitations that match your criteria and remove them, instead of Remove-CalendarEvents:
1.Connect to Security & Compliance PowerShell:
Import-Module ExchangeOnlineManagement
Connect-IPPSSession -UserPrincipalName ******@contoso.onmicrosoft.com
2.Create a cardio compliant search:
New-ComplianceSearch -Name "Remove meeting" -ExchangeLocation All -ContentMatchQuery "kind:meetings AND Subject:'test meeting' AND From:******@contoso.onmicrosoft.com"
Start-ComplianceSearch -Identity "Remove meeting"
3.Delete the message:
New-ComplianceSearchAction -SearchName "Remove meeting" -Purge -PurgeType SoftDelete
Note:
- By default, administrators aren't assigned the Mailbox Search management role, which delete messages must be assigned to .
- A maximum of 10 items per mailbox can be removed at once. undefined
- You can refer to this document to delete messages using Compliance Search: Search for and delete messages in Exchange Server | Microsoft Learn
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.