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

Files not being deleted from bucket #161

Closed
philipowen opened this issue Mar 27, 2017 · 3 comments
Closed

Files not being deleted from bucket #161

philipowen opened this issue Mar 27, 2017 · 3 comments

Comments

@philipowen
Copy link

I am using WP 4.5.6 with the latest S3 plugin. If I upload a file via the UI I can see the file appear in the S3 bucket. However, deleting the file only removes it from the Media Library, it does not remove it from S3. Is this by design?

Subsequent uploads of a file with the same name get an indexed suffix to avoid conflict but this does risk leaving a lot of old files hanging around in S3. I notice that something similar is mentioned in passing on the second comment of #158

I am not specifying S3 bucket credentials, but instead leveraging the instance credentials.

@mojowill
Copy link

Yeah this is definitely not working for me either.

I create the upload in the WP Media area, URL is remapped and I can see the file correctly set in S3, when I delete the image though it gets removed from WP but stays in the S3 bucket.

I used the generate-iam-policy to create the IAM policy for the user in question on S3?

@philipowen
Copy link
Author

When I noticed this I think the policy I had applied was wide-open. I too am using the suggested one now.

You could try the suggested IAM policy in #123 and see if that makes a difference, but I doubt it will. I suspect this isn't a permissions issue.

@philipowen
Copy link
Author

This seems to be a duplicate of #92 So I shall close this one off.

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

2 participants