Remove attachment completely

As Admin I have edited a post in which there was an attachment which is not allowed by our forum rules.

I removed the link to the attachment but the link remains in the edit history, and the attachment also remains (it can still be downloaded).

Can I completely remove/delete the attachment? (it’s a PDF file)

Search your admin settings for clean and you should get some options for handing orphaned uploads (though I don’t know if this is technically considered orphaned).

In the revision history, you should be able to hide a revision. I’m not sure those revisions are even viewable by non-moderators if it isn’t a wiki post.

Uploads (images/attachments) that are only referenced in a revision are indeed considered orphans.

By default revisions are visible to all users. You can disable this in site settings.

That won’t matter, though, because as @zogstrip pointed out, uploads referenced in old revisions get culled and deleted eventually.

Turning off all old revision viewing in this case would be a “boil the sea” solution and definitely not recommended.

To be clear, not suggesting that hiding revision history is the solution here - just clarifying Wes’s post.

旧版本中的附件将随时间推移被永久删除。Discourse 仅保留未删除的活跃帖子中的附件,编辑历史不被视为活跃或当前的帖子。