Can't delete directory

My FTP program is set to show hidden files and says that the directory is not empty.

I shell in and get

cd webmailcompose
-Permision Denied

rmdir webmailcompose
-Doesnt work

rm -rf webmailcompose

…Ok well I figured it out even before I posted the answer.

The chmod was set to 744. I chmoded to directory to 777 then did a rm -rf webmailcompose and the folder deleted.