Cannot delete files/folders with www-data user owner?
Unfortunately not all hostings give you shell access and some of them are even screwed up and you end up with folder and files you cannot delete. The server doesn’t run the php scripts as your user but as global user for example www-data. Because of that you have no permission to delete or rename the files the server made and so you are stuck and forced to call to the unwilling support, send them ticket and wait ages ;(
Or you can help your self and write one line in php and delete the bewitched folder, like so:
[php]exec(‘rm -rf /var/www/vhosts/domain.com/httpdocs/wp-content/cache’);[/php]
Be extremely careful and provide the right path to the folder you really wanna delete!
Run the script once.