Remove Microsoft Teams RPM

Accidentally installed Microsoft teams and want to remove it?

sudo rpm -e teamd libteam --nodeps

Don’t use dnf remove teamd as it will take a load of other things unrelated.

Some other tips:

rpm -qa | grep team

This lists all packages installed. I couldn’t find the name of teams after I installed it from .rpm file.