≡ Menu

Delete network drive from command line

We can delete mapped drive command line using ‘net use’ command. For example to disconnect the network share mapped to the drive z: we can run the below command.

net use /del Z:

Similarly to delete all the mapped drives we can run the below command.

net use /del *
26 comments… add one
  • daybydayboy

    Thanks u so much !

  • Anonymous

    Yes thank you! This is just what I was looking for!

  • Anonymous

    Thank you. It was helpful.

  • Anonymous

    Thank you so much!! its work for me….=)

  • Sesugh

    I found it so very useful because i have created some mapped drives but no longer need them and was wondering how to delete them.

  • That Guy

    Thanks. That’s exactly what I needed.

  • Chella

    ThanQ!!!

  • JITHINSHA

    Hi,

    Thank you for the information. But i would like to know the command to remove a network drive which is already disconnected. If you right click, you have the option to disconnect, but on selecting will say that the drive is not connected. Also the drive icon shows that its disconnected. When running the command “net use”, it says no drives available. But still these drives are showing in Network Area. What could be the issue? If possible give me a solutions.

    Thanks in Advance,

    • Chris

      I totally agree, these commands don’t work when you are not currently on the network (Windows 8)

    • partimer

      On Win7, when I did “net use” to list all network mapped drives. It has one line that the drive was mapped to say \\xxxx\folder1 without a drive letter. I wanted to remove this particular one.

      I tried “net use /del \\xxxx\folder1” for example it also removed OK from the mapped network drive list. I remapped \\xxxx\folder1 and it worked OK.

  • sadiq

    its very helpfull..thanks alot..

  • partimer

    Thanks a lot, helps me too!

  • Sahil Memon

    That was really helpful, thanks!

    Can you help me to map multiple network drives in a single command line please.

  • krishna

    Thanks it’s really helpful

  • krishna

    Any other most importent networking command plz.. share.

  • Rahmat

    bro. how to install Network drivers
    plz help me

    • fatih

      gpupdate /force :) thx me later

  • vus'muzi

    It worked thank you.

  • jitendra sharma

    nice post bro thanks to troubleshooting this error for me good post help to anyone

  • Hyndavi Bhupathiraju

    Thank you so much!!!

  • Jitendra Pastaria

    WOW works great

  • lehien

    Great for guide

    Thanks!

  • Tony

    Thanks – I had forgotten many of the old DOS commands – excellent to find the answer here.

  • David

    Wow. Good advice here! Now, if only the folks at MS could figure out how to add this functionality to the disaster that is File Explorer.

  • Ben de Man

    use:

    net use /del * /yes

    to auto force yes to anwser if you want to delete al former networkmappings

  • KAY

    This was so helpful, i used “net use /del *” to delete a mapped network drive that was not showing in my computer but showing in “net use” without drive assigned. THAnks Thanks

Leave a Comment