I found an issue that when deleting the file from web view which has a weblink enable and reuploading a different file at the same location with the same name the weblink is still active by default.
When deleting a file from any source FTP/HTTP a check to remove the corresponding weblink must done.
Step to reproduce:
1. Upload file A
2. Enable weblink on file A
3. Remove file A
4. Upload file B with name and location of file A
5. Weblink already working