Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How to run "net share Documents /delete" to delete the share

23 Sep 2014   #1
Dragonchaser

W7 Pro x64
 
 
How to run "net share Documents /delete" to delete the share

I used Box but then switched to another cloud service.

I uninstalled the Box desktop app but in my Event Viewer I'm getting this:

The server service was unable to recreate the share Documents because the directory E:\backups\My Box Files\Documents no longer exists. Please run "net share Documents /delete" to delete the share, or recreate the directory E:\backups\My Box Files\Documents.

I tried searching Google for Please run "net share Documents /delete" to delete the share but there isn't much.

Could someone tell me how I can do that? Is it simply clicking Start and typing that text in the search field?


My System SpecsSystem Spec
.
23 Sep 2014   #2
Tookeri

Windows 7 Pro 32
 
 

No, you should type cmd and press Enter. That will open a command prompt window. In there is where you should type this.

You can then type net share /? if you want more information about that specific command and its parameters.
My System SpecsSystem Spec
23 Sep 2014   #3
Alejandro85

Windows 7 Ultimate x64
 
 

Note that for net share to work, you need administrator access, so you must start an elevated cmd.
My System SpecsSystem Spec
.

24 Sep 2014   #4
Dragonchaser

W7 Pro x64
 
 

Is there a command to see existing net shares?

I tried net share /? but couldn't find it:

Code:
C:\Windows\system32>net share /?
The syntax of this command is:

NET SHARE
sharename
          sharename=drive:path [/GRANT:user,[READ | CHANGE | FULL]]
                               [/USERS:number | /UNLIMITED]
                               [/REMARK:"text"]
                               [/CACHE:Manual | Documents| Programs | BranchCache | None]
          sharename [/USERS:number | /UNLIMITED]
                    [/REMARK:"text"]
                    [/CACHE:Manual | Documents | Programs | BranchCache | None]
          {sharename | devicename | drive:path} /DELETE
          sharename \\computername /DELETE

If I run net share Documents /delete is there any danger I could delete something I don't want to delete?
My System SpecsSystem Spec
24 Sep 2014   #5
Dude

Windows 10 Pro X64
 
 

just type
Code:
net share
in the command prompt
My System SpecsSystem Spec
24 Sep 2014   #6
Alejandro85

Windows 7 Ultimate x64
 
 

net share on its own lists all the current shares, the very same that you can find and manage in computer management.

The /delete thing will just delete the share, that is, making it unavailable to other computers over network. The data itself that the share pointed to is unaffected at all.
My System SpecsSystem Spec
25 Sep 2014   #7
Dragonchaser

W7 Pro x64
 
 

Interesting... I learned a few things today. Thanks!

1. I did net share to get a list of shares and the share I'm supposed to delete isn't even there:

Code:
C:\Windows\system32>net share

Share name   Resource                        Remark
-------------------------------------------------------------------------------
ADMIN$    C:\Windows                Remote Admin
C$           C:\                             Default share
print$       C:\Windows\system32\spool\drivers       Printer Drivers
IPC$                                         Remote IPC
E$           E:\                             Default share
E            E:\
Pictures     E:\Pictures
Users        C:\Users
Videos       E:\Videos
Dell Laser Printer 1100    USB001       Spooled  Dell Laser Printer 1100
Kyocera Mita KM-1650     USB002       Spooled  Kyocera Mita KM-1650
The command completed successfully.
2. So logically typing net share Documents /delete resulted in the following:

Code:
C:\Windows\system32>net share Documents /delete
System error 3 has occurred.

The system cannot find the path specified.
3. Makes me wonder why I'm getting this in my Event Viewer:

The server service was unable to recreate the share Documents because the directory E:\backups\My Box Files\Documents no longer exists. Please run "net share Documents /delete" to delete the share, or recreate the directory E:\backups\My Box Files\Documents.

Any suggestions?

Perhaps I should recreate the directory E:\backups\My Box Files\Documents and see what happens?
My System SpecsSystem Spec
25 Sep 2014   #8
Alejandro85

Windows 7 Ultimate x64
 
 

Maybe the folder that the share was referring to was deleted? Then the service may fail to list it (seems pretty much like a bug).

What if you try to create the real path on Windows explorer? Does the share begins to list? And can you delete it afterwards?
My System SpecsSystem Spec
07 Oct 2014   #9
Dragonchaser

W7 Pro x64
 
 

The problem is solved! Me happy!

Here is what I did:
1. create the folder manually (no more Warning from here on)
2. delete the share manually (net share Documents /delete)
3. delete the folder manually
4. reboot

Thanks to Tookeri, Alejandro85 and Dude!
My System SpecsSystem Spec
Reply

 How to run "net share Documents /delete" to delete the share




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Remove "Restore previous versions" and "Share with" from context menu
Hello! ... How about removing these two: "Restore previous versions" and "Share with"
Customization
How to get "My Docs" and "My Pictures" from a NAS share
My primary PC has been my primary storage device for years. I have nearly 500 Gigs worth of music, photos and documents that I want to move out to a central storage device, so I bought a 2TB NAS. My wife has a laptop, smart phone and tablet. The phone and tablet are used to take large...
Network & Sharing
Attempted Share to Libraries Results in "Folder Not Indexed" Error
Hi all. I am unable to get a shared folder from one user account on the same machine to add to another user account's Libraries due to this "folder not indexed" error. The same thing occurs when trying to add across the network to a different computer for a different user account's Libraries. ...
Network & Sharing
Cant share external Hard drive "Incorrect Function"
So I have a Windows 7 64bit desktop with 2 external hard drives that have shared over my network so I can view the files on my laptop(win 7 64bit) and watch movies and such on my xbox via windows media center. I recently purchased a WD Elements 2TB external Hard Drive. I connect the new drive...
Network & Sharing
Does WLM "completely" delete email without "Compact Datadases"?
With XP's Outlook Express- When you'd delete email from their Folders, they weren't "completely deleted..." until you Compacted Databases & Reboot (without CD, OE would Not release from backup..., and Bloat...!). ~~~~ Q1?- I now use WLM 2009 POP3/only (I like 2009's GUI, Much better than...
Browsers & Mail
fully control/share "Program Files(x86)" folder
hey guys how can i fully open share my "Program Files(x86)" on the other network computer? i set-up the advance sharing to everyone with full control,change,and read, but still when i paste some file using network it saying that i need to be Administrator to do that action
Network & Sharing


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 19:49.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App