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.
Attachments in old revisions will be permanently deleted over time. Discourse only retains attachments in live posts that are not deleted, and edit history does not count as a live, current post.