How to delete duplicate files using python

As I am diving more into python recently I found an interesting script how to delete duplicate files. The algorithm used takes a path as an argument and scans all containing files and folders recursively for duplicates. Files are called duplicates when they have the same size and the same hash value (MD5). You only need to have python 2.7 installed on your computer to run it.

To enhance convenience I extended the original script from Daniel Brown by adding a graphical user interface using Tkinter, which is integrated in python’s standard library. I further changed the algorithm to not only delete the found duplicates but to display them so that the user can decide which ones to delete.

You will find the source code at github:

I hope you find this script useful and I am happy for any feedback.