How do I remove a globally installed Composer package?

How to remove a globally installed Composer package.

Image

When I was updat­ing to Com­pos­er 2, one of my glob­al pack­ages wasn’t com­pli­ant with the Com­pos­er 2 plu­g­in installer. It also hap­pened to be a plu­g­in that enabled a fea­ture that Com­pos­er 2 now sat­is­fied (con­cur­rent pack­age down­loads), so it was safe to remove it. 

Here’s how:

composer global remove [the/package-name-here]

(Replace the square brack­ets and what’s inside with the pack­age name you want to remove.)