Discourse won't delete attachment after period hours

Perhaps I’m misunderstanding.

As far as I know, the only way to rename the file after uploading is to remove it and wait for Discourse to delete it, and then reupload it.

I followed this guide (edit the posts to remove the attachment links) to remove the file.