Deleting Duplicate files with similar names in Powershell-ISE


I have a few hundred thousand files to go through which are all sitting in one folder. I need to find and delete the duplicates. The problem is, the duplicate files only have similar names, not exactly the same. The other parts are different.
Is it possible to use powershell-ISE to find files based on similar names, then delete the duplicate files that have a name length shorter than 7 characters?

I am very new to Powershell, so any answers will need to be explained. 🙂

Thank you.

Related Question