The hash is the MD5 of the content of the file. So changing the name won’t do anything indeed.
Delete them through Discourse and not directly from the blob.
That’s because if an uploaded file has the same hash as a previously uploaded file, we’ll return the record associated to that file. The record includes the filename of the previously uploaded file.