Late answer, but for those seeking a solution, for me
rm <dirname> -rf
it wasnβt good, I always get the directory non-empty or too long in node directories.
A really simple solution: Move the directory you want to delete to the root of your disk (to shorten your path), and then you can delete it normally.
source share