# Help deleting photos from server that were attached to deleted posts

**URL:** https://meta.discourse.org/t/help-deleting-photos-from-server-that-were-attached-to-deleted-posts/294066
**Category:** Support
**Created:** [February 3, 2024, 8:54pm UTC](https://meta.discourse.org/t/help-deleting-photos-from-server-that-were-attached-to-deleted-posts/294066 "2024-02-03T20:54:31Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![flash](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@flash](https://meta.discourse.org/u/flash)
#### Post date: [February 3, 2024, 10:41pm UTC](https://meta.discourse.org/t/help-deleting-photos-from-server-that-were-attached-to-deleted-posts/294066/2 "2024-02-03T22:41:06Z")

</div>

Im not sure I understand this. I have not uploaded anything but deleted posts and categories on a test site. Theres no users right now and its been about 3 hours or so. from 13.7 to now showing this. Orphans uploads set to delete in an hour and hasnt happened.

 ![Screenshot 2024-02-03 233347](https://global.discourse-cdn.com/meta/original/4X/9/f/5/9f562183bd9eccf066e548057e52db57629cd23c.png)

I see this thread that discusses alot but nothing happened?

> [@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):
>
> Because message revisions are kept, and older removed messages are also kept, and even removed topics are still there in database, how do I make an image orphaned so it gets removed automatically by a sidekiq job?

Then this one here.

> [@Any api to purge old deleted posts / uploads](https://meta.discourse.org/t/any-api-to-purge-old-deleted-posts-uploads/73495/7):
>
> Call for Help! Can a clever person walk me through combining: AND to make an awesome orphaned uploads purger run from the console? I note that when I use rails db, I’m asked for Password for user discourse:. What do I do with that?

and Ive tried everything in rails mentioned, sidekiq, and with commands in that thread and still nothing deletes. Over should be hundreds if not thousands of images deleted as the users posts removed posted photos with every thread.

---

_[View the full topic](https://meta.discourse.org/t/help-deleting-photos-from-server-that-were-attached-to-deleted-posts/294066)._
