Article 4XGXK [SOLVED] Delete File With Broken Symbolic Link

[SOLVED] Delete File With Broken Symbolic Link

by
Steve R.
from LinuxQuestions.org on (#4XGXK)
I moved a large directory to a USB hard drive mounted on my router. I decided, later, to delete it. Turned-out that one file, which had a symbolic link, could not be deleted. I spent some time following the advice here: Delete all broken symbolic links with a line?.

I also ran across this new post that is pretty good: How to Remove (Delete) Symbolic Links in Linux

Unfortunately, none of the advice worked.

As I stared at the the long list of error messages, a thought occurred. I removed the USB hard drive mounted on the router and mounted it on my computer. I was able to immediately delete the file without doing anything fancy.

The implication is that attempting to delete a "broken" file on a network drive may not always be possible given certain situations.latest?d=yIl2AUoC8zA latest?i=loK9meExBLk:_n2I0QvzPOU:F7zBnMy latest?i=loK9meExBLk:_n2I0QvzPOU:V_sGLiP latest?d=qj6IDK7rITs latest?i=loK9meExBLk:_n2I0QvzPOU:gIN9vFwloK9meExBLk
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments