if you cannot delete a directory with files in it, this article will show you a trick on how to bypass and actually delete it anyway with all the files inside of it.
or if you are getting "Allow deletion of non-emtpy folder is disabled" you will use this post to your benefit to troubleshoot and resolve your problem.
The reason you are getting this error is because the directory is NOT empty. It has at least one file under it somewhere that begins with a period (.) so that it is hidden or invisible to the regular 'ls' command.
In order to see and delete these hidden files,
From the shell type the following command:
| ls -la /htdocs/www/dirname |
where. Doing that will show you all the hidden files inside the directory. You can then delete the hidden file individually like this:
| rm -f /htdocs/www/dirname/.hiddenfile |
* /htdocs/www/dirname is the full path to the directory that you are trying to delete
To delete a directory that still has hidden files in it with your FTP program, first turn on the ability to see hidden files with your FTP program. Then click on the revealed hidden file and delete it with your FTP program as you normally would any other file. When you've gotten rid of all the hidden files, you will be able to delete the directory that they were under. To learn how to enable the to see hidden files with your FTP program like WS_FTP Pro CLICK HERE ..