# 如何使图片成为孤儿以便删除？

**URL:** <https://meta.discourse.org/t/how-to-make-an-image-orphaned-so-that-it-gets-removed/79231>\
**Category:** Product Support\
**Created:** [2018 年1 月 29 日 00:52 UTC](https://meta.discourse.org/t/how-to-make-an-image-orphaned-so-that-it-gets-removed/79231 "2018-01-29T00:52:45Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

作者： ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
发布日期： [2019 年2 月 20 日 09:39 UTC](https://meta.discourse.org/t/how-to-make-an-image-orphaned-so-that-it-gets-removed/79231/8 "2019-02-20T09:39:24Z")

</div>

I am traumatised from losing of uploads, my blog just lost a pile of images on early posts due to a bug we had.

I think we should simply start with a rake task people can run to reclaim the space taken up by images on deleted posts (and posts on deleted topics) we can then decide what to do longer term but at least have an outlet here.

---

_[View the full topic](https://meta.discourse.org/t/how-to-make-an-image-orphaned-so-that-it-gets-removed/79231)._
