This is my symlink:
export -> /home/company/test/var/export/
I tried to delete it with rm export/
Output: rm: cannot remove ‘export/’: Is a directory
So I tried unlink: unlink export/
Output: unlink: cannot unlink ‘export/’: Not a directory
This is my symlink:
export -> /home/company/test/var/export/
I tried to delete it with rm export/
Output: rm: cannot remove ‘export/’: Is a directory
So I tried unlink: unlink export/
Output: unlink: cannot unlink ‘export/’: Not a directory
The problem is the trailing slash.
rm export/ fails
rm export works <--
export/ you are asking to remove the target of the symlink which you expect to be a directory. (This can never work with the rm command.)
– user10489
Feb 23 '25 at 12:57