If a mapped drive (not recommended): From Windows Explorer -> Tools -> Disconnect Network Drive

If not a mapped drive, from command prompt (run as administrator):

rundll32.exe keymgr.dll, KRShowKeyMgr

Then select any network share to clear credentials for, then click delete button. (no network shares listed).

You can also edit the credentials if you just need to fix a mistake.