# Any api to purge old deleted posts / uploads

**URL:** <https://meta.discourse.org/t/any-api-to-purge-old-deleted-posts-uploads/73495>\
**Category:** Product Support\
**Created:** [6. November 2017 um 08:59 UTC](https://meta.discourse.org/t/any-api-to-purge-old-deleted-posts-uploads/73495 "2017-11-06T08:59:10Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![adopilot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adopilot/32/105040_2.png) [@adopilot](https://meta.discourse.org/u/adopilot)\
**Post date:** [6. November 2017 um 08:59 UTC](https://meta.discourse.org/t/any-api-to-purge-old-deleted-posts-uploads/73495/1 "2017-11-06T08:59:10Z")

</div>

Our discource is runing out of space on server.  
We did bulk deleted old posts whit uploads.  
But We did not gain any space.  
When I query table topics they only have` topics.deleted_by_id is not null`  
Uploads for these topics are still on server.

Is there any way to make this Uploads orphans so sidekiq can clean these?  
Or is there any way to PRUGE deleted topics so they do not consume space any more ?

I saw [auto purge uploads from old deleted posts](https://meta.discourse.org/t/auto-purge-uploads-from-old-deleted-posts/51306) , but one year has past since post maded whit no replays.  
So I started searching my way to release space on server

---

_[View the full topic](https://meta.discourse.org/t/any-api-to-purge-old-deleted-posts-uploads/73495)._
