Actually, I try to manually delete the pub\media\catalog\product\cache folder but when I go to the Product Page in the Admin Panel the pub\media\catalog\product\cache folder was Regenerated how to stop automatically regenerating folder because I need is to permanently delete the media folder.

1 Answer 1


Try to delete in database

When you delete pub/media, it is will regenerated.

so please check in database.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.