I use macOS with a corporate O365 subscription (including Microsoft Teams). I shared lots of files in MS Teams and did see them in OneDrive (I have a client installed):
/Users/example/OneDrive - example/Microsoft Teams Chat Files
I deleted them all and empty local trash.
Then go to
https://example.sharepoint.com/personal/example/_layouts/15/onedrive.aspx?view=5 and see all the files in trash. I again said empty trash.
I restarted MS Teams, but still all files there.
How to permanently delete all files shared in MS Teams conversations (1:1 and groups)? I wish to this semi-automated, not click on every file and choose delete.