How to Delete Duplicate Songs in iTunes Automatically

Does anybody know how to delete all duplicate versions of songs in iTunes automatically? There are a ton of VBScript solutions out there on the web but none of which have worked for me. The “Show Duplicates” feature inherent in Apple iTunes is convenient for identifying which songs are duplicates, but it does not provide an option to automatically delete multiple songs. I am not sure why the duplicates even got imported in the first place, but I need to get rid of them. Anybody have any suggestions? Is there a way to rebuild the library from scratch?