How to fix error with this message when I click to button “Clean the Catalog Images Cache File”:
The directory
“/var/www/html/project-community-edition/pub/media/catalog/product/cache/d08a1eb7b61352ea219ec60a4090e56e/h/t”
cannot be deleted
Warning!rmdir(/var/www/html/project-community-edition/pub/media/catalog/product/cache/d08a1eb7b61352ea219ec60a4090e56e/h/t):
Directory not empty
3
Answers
That is strange, I imagine you don’t care about the contents of the cache, have you tried giving the folder the right permissions? Those the user for Admin panel have the rights to flush?
This issue of Permission
Under Your Project Folder Run This Command :-
This is not a permissions problem.
It happens when you clean the cache on a site that has active visitors.
Magento scans the cache directories for images, then deletes the images it found, then deletes the directory.
The process that leads to the error is: