# Post verwijderen verwijdert het bijbehorende afbeeldingsbestand niet uit de bucket

**URL:** https://meta.discourse.org/t/removing-post-not-removing-its-image-from-bucket/203477
**Category:** Support
**Created:** [14 september 2021 om 04:08 UTC](https://meta.discourse.org/t/removing-post-not-removing-its-image-from-bucket/203477 "2021-09-14T04:08:36Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [14 september 2021 om 10:54 UTC](https://meta.discourse.org/t/removing-post-not-removing-its-image-from-bucket/203477/5 "2021-09-14T10:54:55Z")

</div>

> [@tenzan](#):
>
> When I remove a post that had an image, its image remains in the bucket.

I think they’re cleaned up by one of the daily scheduled jobs?

> [@How to make an image orphaned so that it gets removed?](https://meta.discourse.org/t/how-to-make-an-image-orphaned-so-that-it-gets-removed/79231/3):
>
> All the details are available in this job
> 
> [https://github.com/discourse/discourse/blob/master/app/jobs/scheduled/clean\_up\_uploads.rb](https://github.com/discourse/discourse/blob/master/app/jobs/scheduled/clean_up_uploads.rb)
> 
> TL;DR: an image is orphaned if and only if it’s not referenced
> 
> - in the latest version of a post
> - in a draft
> - in a queued post
> - in a logo site setting
> - in a custom emoji
> - in a theme
> - in a user avatar/background/card image
> - in a category logo/background image

---

_[View the full topic](https://meta.discourse.org/t/removing-post-not-removing-its-image-from-bucket/203477)._
