# Cannot delete user due to S3 storage policies

**URL:** <https://meta.discourse.org/t/cannot-delete-user-due-to-s3-storage-policies/61332>\
**Category:** Bug\
**Created:** [April 20, 2017, 3:15pm UTC](https://meta.discourse.org/t/cannot-delete-user-due-to-s3-storage-policies/61332 "2017-04-20T15:15:22Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![niemeyer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/niemeyer/32/120325_2.png) [@niemeyer](https://meta.discourse.org/u/niemeyer)\
**Post date:** [April 23, 2017, 10:20pm UTC](https://meta.discourse.org/t/cannot-delete-user-due-to-s3-storage-policies/61332/11 "2017-04-23T22:20:39Z")

</div>

Found the issue: I was using an IAM policy on Amazon’s S3 that prevented deletes as a safety net, because I assumed image uploads were one-way only. Turns out deleting the user attempts to delete content from S3 as well, supposedly to remove the avatar image? Haven’t confirmed that yet, but logs will show in a short while. The S3 delete error eventually cascaded into the standard and in this case misleading “delete all posts” message.

I’ve now opened up the IAM policy for object deletes on the bucket, but preserved it with object versioning, which implies we still get the safety benefits while allowing deletes to happen.

---

_[View the full topic](https://meta.discourse.org/t/cannot-delete-user-due-to-s3-storage-policies/61332)._
