Deleting of file updates list of files as well list of duplicates