Ask Question. Asked 11 years, 5 months ago. Active 10 months ago. Viewed k times. Improve this question. Der Hochstapler 83k 57 57 gold badges silver badges bronze badges. Ben V Ben V 3, 2 2 gold badges 17 17 silver badges 12 12 bronze badges. Add a comment. Active Oldest Votes. Be very careful. Improve this answer. Cristian Ciupitu 5, 2 2 gold badges 32 32 silver badges 46 46 bronze badges.
Having just accidentally done this deleted the complete contents of the target folder , this an important tip. This answer is not entirely accurate. Del deletes files, not folders.
Therefore, you would not use del to delete the link. But don't use rmdir in PowerShell. Wrap it in cmd first. See my answer below How about if i delete it through windows explorer???? I don't get at which moment the devs considered it logical to delete files behind a link when deleting the link. After the 5th or 6th beer? Or perhaps after the mushrooms Show 9 more comments. It is correct. I do it all the time.
Just tested it again right now. This just worked for me as well. This does NOT delete the linked folder. Show 1 more comment. George V. Reilly George V. Reilly 5 5 silver badges 5 5 bronze badges. Warning: "del" will delete the file and not just the link. Warning from Tristan is not correct, this answer is accurate.
Tested on windows 7. You will see that the symlink is removed, and the original directory and its contents are still present. Warning about trying other ways: a directory symbolic link cannot be deleted like a file at the command line, using del. Doing so deletes the files in the directory! Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 1 year, 5 months ago. Active 3 months ago. Viewed 5k times. The last one wants to delete recurse. Can anyone help me? Michael Michael 31 1 1 silver badge 5 5 bronze badges. Refer to computerhope. Add a comment. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science.
Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Linked 4. Related Hot Network Questions. Question feed. Stack Overflow works best with JavaScript enabled. Accept all cookies Customize settings.
0コメント