Today I was surprised to see duplicated records in SharePoint list which I imported and updated from XML-files. So I started to find a solution to find duplicated records, see them and delete.

Below I post a powershell script to find and remove duplicated records. It was found using google-search, and added string not to remove duplicated records immediately, but to see them at first.