First,use the command
dpkg -l | grep team
The full package name should show up in the output on the list of installed applications. Find it and use the name listed. I believe it should look like this:
sudo apt-get purge teamviewer
or,if you want to use a wild card,you can use something like this instead:
sudo apt-get remove teamv*