Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deletion not working from Amazon S3 bucket #31

Open
callsk opened this issue Jan 30, 2018 · 7 comments
Open

Deletion not working from Amazon S3 bucket #31

callsk opened this issue Jan 30, 2018 · 7 comments

Comments

@callsk
Copy link

callsk commented Jan 30, 2018

While deleting media from system (magento 2) and saving it, thaiphan extension doesn't remove it from amazon S3. Can you please provide solution for that.

@pranavgaikwad
Copy link

@callsk This is expected behaviour.

@dev-dyna
Copy link

Why it's re generate all product images in system pub/media/catalog/product ?
i am not able to manage my 1TB images in my system server that's why we use s3 bucket. so why its regenerate images in system server also ?

@jobrandon
Copy link

I had the same issue. It regenerates the images in the system server.

@thaiphan
Copy link
Owner

thaiphan commented Jul 2, 2018

Hey guys,

Yeah, Magento will regenerate images in the system server by default. I plan on building a cron job to delete images every night but haven't gotten around to building that.

Regards,

Thai

@jobrandon
Copy link

Hi @thaiphan,

Do you have any idea why Magento do that? Is it something we can disable or is it because of caching Magento does? Anyway, it does not create any issue whenever we delete the folder contents, right?

Regards,
Bran

@thaiphan
Copy link
Owner

thaiphan commented Jul 3, 2018

Hey @jobrandon,

Do you have any idea why Magento do that? Is it something we can disable or is it because of caching Magento does?

Yeah, it's a caching mechanism that Magento has built in. We can't change it. :/

Anyway, it does not create any issue whenever we delete the folder contents, right?

You should be able to safely delete the media folder. However, I recommend backing up your images first but.

Regards,

Thai

@mansiprajapati1695
Copy link

Hi @thaiphan,

it is not deleting captcha files from the s3 buckets
can you please guide me how to delete those files from s3?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants