# Is there a way to delete old/irrelevant uploads?

**URL:** <https://meta.discourse.org/t/is-there-a-way-to-delete-old-irrelevant-uploads/49284>\
**Category:** Product Support\
**Created:** [August 26, 2016, 4:12pm UTC](https://meta.discourse.org/t/is-there-a-way-to-delete-old-irrelevant-uploads/49284 "2016-08-26T16:12:52Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [August 26, 2016, 10:40pm UTC](https://meta.discourse.org/t/is-there-a-way-to-delete-old-irrelevant-uploads/49284/4 "2016-08-26T22:40:30Z")

</div>

> [@Overgrow](#):
>
> unused uploads (not attached to post) are removed automatically with some Job.

Under Admin → Settings → Files there are these

> clean up uploads [default: enabled]  
> Remove orphan unreferenced uploads to prevent illegal hosting. WARNING: you may want to back up of your /uploads directory before enabling this setting.

> clean orphan uploads grace period hours [default: 48]  
> Grace period (in hours) before an orphan upload is removed.

> purge deleted uploads grace period days [default: 30]  
> Grace period (in days) before a deleted upload is erased.

It might be that making an upload an orphan would result it it being deleted. I haven’t tested, but AFAIK these settings do not clean up older posts retroactively.

One problem I see here is defining “old/irrelevant”

- Admin judgement call?
- last post date?
- last viewed date?
- topic status (eg. Closed/Archived/Unlisted/Deleted)?

---

_[View the full topic](https://meta.discourse.org/t/is-there-a-way-to-delete-old-irrelevant-uploads/49284)._
