Remove Duplicates

Phase 1 - Duplicate detection module

Identify duplicate files in a given folder by computing file hashes and grouping identical ones.

  • Input: path to a folder
  • Compute checksums for all files
  • Group files with identical content
  • Print groups of duplicates

Functional result: A script that correctly lists duplicate file groups.

Phase 2 - User-driven duplicate cleanup module

Extend the script to interactively ask the user which duplicates to delete and perform safe deletions.

  • Prompt user for each duplicate group
  • Allow selection of files to delete
  • Delete chosen files with error handling

Functional result: A script that lists duplicates and deletes selected files based on user input.