File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Linux / UNIX and the fly likes delete soft link Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "delete soft link" Watch "delete soft link" New topic
Author

delete soft link

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1368
How to delete only soft link without deleting directory and its contents. unlink deletes soft link and directory too.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24166
    
  30

Hi,

No, deleting a soft link deletes only the link. If you have a link to a directory and you just say "rm link", then the link is removed. If you say "rm -rf link", though, then yes, the whole linked-to directory will be emptied out.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: delete soft link
 
Similar Threads
modification is not reflecting in server
I want to Read and copy 800 MB file. Any efficient way.
How to do well in Java/J2EE Job Interviews
soft link
WA #1.....word association