How to remove the ‘VPN is not configured’ icon from the menu bar on macOS?

screenshot of menu bar

I don’t know when it appears.

Could you tell me how to remove or add the icon?


Solution 1:

In that menu, click 'Open Network Preferences ...'
and in the next dialog, uncheck the option 'Show VPN status in menu bar'.

enter image description here

Solution 2:

You can usually (but not always) remove a menulet icon by holding down the Command key and dragging it off.