Use cPanel to check permissions. Files = 0644 , Directories = 0755
Adjust to proper permissions and then try again.
If the permissions are wrong and you cannot delete the file /public_html/foo/bar.html , then you cannot delete the directory /public_html/foo ... ie, you have to check all subdirectories and files.