Unlink or Remove a Symbolic link in Linux
Scenario / Question:
How to unlink or remove a symbolic in linux that was created with ln
Solution / Answer:
Use the unlink command
To unlink a symbolic link file :
# unlink symbolic_link_file
To unlink a symbolic link to a directory :
# unlink symbolic_link_dir
When unlinking a directory make sure that you do not include the trailing forward slash:
Wrong:
# unlink myDirectory/
Correct:
# unlink myDirectory
The information provided is for educational purposes only. All content including links and comments is provided "as is" with no warranty, expressed or implied. Use is at your own risk and you are solely responsible for what you do with it.



thanks man.
I get a message that says, “unlink: cannot unlink `/directory to unlink’: Is a directory