# Amazon S3 orphan images not removing

**URL:** <https://meta.discourse.org/t/amazon-s3-orphan-images-not-removing/58914>\
**Category:** Product Support\
**Created:** [Março 12, 2017, 6:25am UTC](https://meta.discourse.org/t/amazon-s3-orphan-images-not-removing/58914 "2017-03-12T06:25:50Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [Março 12, 2017, 11:53am UTC](https://meta.discourse.org/t/amazon-s3-orphan-images-not-removing/58914/4 "2017-03-12T11:53:42Z")

</div>

Cleaning up orphan uploads _should_ work for both local and S3 storages.

The only difference between the local and S3 storages is that the cleanup of the tombstone is automatically handled by S3 via a [policy](https://github.com/discourse/discourse/blob/3141c179f727772bf32798b48f5355918c3924b4/lib/s3_helper.rb#L49-L66).

@Vikas_Dangi have you enabled the `clean_up_uploads` site setting? Are you sure that image isn’t used somewhere else (avatar, user profile, category image, etc..)?

---

_[View the full topic](https://meta.discourse.org/t/amazon-s3-orphan-images-not-removing/58914)._
