Komga can detect duplicate files among your books.
You need to enable file hashing for your libraries.
You can manage duplicate pages from Server Settings > Duplicate Files.
Browsing Duplicate Files
This screen will show all the duplicate files.
You can direcly delete a duplicate file by clicking on the trashcan icon.