Why XfilesList component shows 2 files but AWS S3 doesn't have any files why this is happening and how to resolve

Why XfilesList component shows 2 files but AWS S3 doesn't have any files why this is happening and how to resolve

Issue: 
For Case# 01640965 the attachments section shows there are 2 files but when I try to download/delete seeing below error message.
Actually, when verified in AWS there are no files for this Case but the attachment section shows these 2 files.

Resolution: 

Once files are uploaded in the XfilesPro List Component, External Content Details (ECD) records are created for each file. However, if the files are subsequently deleted from the S3 end, the ECD records remain in Salesforce. 
This is why you are able to see dummy files in the XfilesPro List Component, and it is not bi-directional.

Delete the External Content Details (ECD) records associated with the case with ID 01640965 from developer console in saleforce and the issue will be resolved.