is the command net use /delete example wrong?

C 0 Reputation points
2023-10-05T08:29:36.5766667+00:00

url: https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/gg651155(v=ws.11)

it writes:

" To disconnect from the \Financial\Public directory, type:

net use f: \financial\public /delete "

I can't delete successfully using this command and it will return:

"A command was used with conflicting switches. More help is available by typing NET HELPMSG 3510."

But I can delete successfully by using the command : "net use f: /delete"

I'm not sure if the document is right or not.

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,837 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,272 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Since DOS 1.0 5 Reputation points
    2023-10-07T02:32:57.1066667+00:00

    If the actual drive you're trying to delete is "F"

    then
    net use f: /delete
    is correct.. (dont type out the the share name)

    it will prompt you to actually delete the share (Y/N)