How to remove ttf-mscorefonts completely?

Solution 1:

Because of the way the fonts are allowed to be distributed, the package downloads installers and extracts them into their own directory in /usr/share/fonts/truetype/.

To clean up those extracted files, just run this:

sudo rm -rf /usr/share/fonts/truetype/msttcorefonts

You can be more thorough (run locate msttcorefonts to find more places where various helper files are excreted) but the other command should have cleaned up all the fonts.

You might find you need to clear the font cache after this for applications to realise the fonts have gone. Fairly simple:

fc-cache -rv

Solution 2:

You can uninstall the font instead of just remove it.

sudo apt-get remove ttf-mscorefonts-installer

Then according to @Oli answer, update font cache
fc-cache -rv