Skip to content

Instantly share code, notes, and snippets.

@pietrocolombo
pietrocolombo / delete_duplicate_file.py
Last active November 24, 2024 07:50 — forked from vinovator/checkDuplicates.py
Python script to merge or delete duplicate files from a folder
# delete_duplicate_file.py
# Python 3.8.6
"""
Given a folder, walk through all files within the folder and subfolders
and delete all file that are duplicates so you have only one copy of every file
The md5 checcksum for each file will determine the duplicates
"""
import os