How to make an image orphaned so that it gets removed?

Were these ever actioned? I can’t see a Rake task or a setting that will remove images from deleted posts.

When I look in at the old deleted posts (> 1 year old) in our instance, the images are still there.

This matters at the moment as we are moving part of an instance which will involves a heap of topic deletions and historic uploads that need to be removed.

Another way to solve this would be to purge deleted posts and topics from the database, but I can’t see how to do that either.

P.S.

continued here:

저희 인스턴스에서도 마찬가지입니다. 이 기능이 있으면 좋겠습니다. 사용자가 기대하는 것은 게시글이 삭제된 경우, 게시글에서 링크를 먼저 제거할 필요 없이 48시간 후에 업로드된 파일이 자동으로 정리되는 것입니다.

Contribute > Feature 아래에 별도의 스레드를 만들까요?