I tried to run compliancesarch action "Purge" but it did not delete the messages from teams mailbox, waited like 7 days - messages are still there.
How many items would you like to remove from the Teams mailbox?
Please note that the New-ComplianceSearchAction cmdlet is not intended for bulk remove messages and would only remove 10 items one time.
If you have many items to remove, you may need to repeat the process in this link:
Use Security & Compliance Center PowerShell to delete items from the Recoverable Items folder for mailboxes that aren't placed on hold or don't have single item recovery enabled
If it is possible, another workaround would be having the owner of this M365 group manually remove the items in OWA/Outlook.
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.