rm -rf failed

I’m trying to remove a directory on my UNIX machine but the system says otherwise. Normally, rm -rf directory_name/ would do the job of removing directories recursively, ignoring any files in it.

This time, it simply refused my input. The system grumbled and returned a permission denied. I’ve tried various directory permissions and returned nothing positive thus far.

Any help appreciated!

Update: I just realized that I’ve enabled htpasswd for the directory previously and that’s why I got permission denied. Let’s try to remove the htpasswd protection and see if it works.

Update 2: Nope… things are still broken despite removing the directory protection. I’ve contacted my webhost and they have resolved it by using the root account to remove the directory. Somehow, even though I’m the owner of the directory, unix refused to let me touch the directory.