How to remove version 4.1 after upgrade to 4.2 on Ubuntu

I just upgraded to 4.2 and noticed that I still have 4.1 installed. Would the command

sudo apt-get remove libreoffice4.1*

work for me?