Document filename error message

I upload a document with document filename, save the record, and discover it is the wrong one. So I delete it, save the record, and upload the correct one. Now when I click on the filename, it opens the correct document BUT it ALSO gives me an error message that the original doc can’t be found.

I looked in the database table to see if any key was wrong, and all good there. How do I kill that error message? Some kind of memory flush?