Hi Muhammad Zeeshan,
You can follow MS article Deploy a script to remove built-in apps.
It contains a link to a script that will:
- Removes built-in apps from devices.
- Removes the Microsoft Store app from devices.
For Teams, you can use a script in Intune like:
Get-AppxPackage MicrosoftTeams* | Remove-AppxPackage -AllUsers
Get-AppxProvisionedPackage -online | where-object {$_.PackageName -like "*MicrosoftTeams*"} | Remove-AppxProvisionedPackage -online –Verbose
Best regards,
Aleksandr
If the response is helpful, please click "Accept Answer" and upvote it.