File Reference and Deletion, will it really be deleted?

…so that means that “deletion” in the UI or editing the post so only an old revision contains the link is not enough to get a file removed, right?