Why rm dirname doesn't work ? It says it's a directory, well that I know :) but I want to delete it not even recursively as it is empty.

link|improve this question
feedback

2 Answers

up vote 4 down vote accepted

Because you need to use rmdir?

link|improve this answer
that one works this time, thanks :) – asksuperuser Nov 1 '09 at 22:13
feedback
rm -d my_directory

from 'man rm':

-d Attempt to remove directories as well as other types of files.

link|improve this answer
I tried with -d it still says the same message – asksuperuser Nov 1 '09 at 22:13
feedback

Your Answer

 
or
required, but never shown