rem G: is virtual drive that will was mapped to a remote compututer on the LAN.
rem Break the association.
rem Make sure you put the /DELETE before the G:
net use /DELETE G: