ok, if you are getting this error, just force it with this command.

lets say for example, i am trying to detele a directory called install and in this directory, i have some file, so to remove the whole thing just run this command:

rm -rf install


thats it, hope this helps you. i appreciate all your comments