If you are looking for the command for uninstalling a npm package which was earlier installed using npm install -g command then you can use the following command:
npm uninstall -g <YourPackageName>
For example, If you installed a package say "create-react-app" the uninstall global command will be
npm uninstall -g create-react-app