Use the json export of MediaDC (NextCloud app) to delete duplicates pictures massively
usage: MediaDC - Mass deleter [-h] [--exclude EXCLUDE [EXCLUDE ...]] [--include INCLUDE [INCLUDE ...]] [--dry-run] [--different-path-only] --host
HOST --login LOGIN --password PASSWORD [--verify-ssl]
json
Takes the json export from MediaDC and massively delete all replicates
positional arguments:
json Path to the json file
optional arguments:
-h, --help show this help message and exit
--exclude EXCLUDE [EXCLUDE ...]
Do not delete files whose path contains this (if size is similar)
--include INCLUDE [INCLUDE ...]
Prefer to delete files whose path contains this (if size is similar)
--dry-run Do not actually delete files
--different-path-only
Only delete files in different path (to avoid deleting pictures just a bit similar)
--host HOST WebDav full URL as given in the bottom left of the root URL
--login LOGIN Login
--password PASSWORD Password
--verify-ssl Do verify SSL certificate
![image](https://private-user-images.githubusercontent.com/248961/311858015-df6a2634-d9a1-4d4a-934a-94d71c8695ca.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4OTIyMDgsIm5iZiI6MTcyMzg5MTkwOCwicGF0aCI6Ii8yNDg5NjEvMzExODU4MDE1LWRmNmEyNjM0LWQ5YTEtNGQ0YS05MzRhLTk0ZDcxYzg2OTVjYS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODE3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxN1QxMDUxNDhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zNWYyNzJhYTFlNmRhNzI1NWZlZWVjNjM5ZTc5Mzc3Njc3ZTkxZjMzZGM5YmY4YmYyMmJmMTUxZjRlZDc3ZDgwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.c5xe9xzC85toKnih6TkTo3UKD4JgJEjYsirTqFUkWDg)
![image](https://private-user-images.githubusercontent.com/248961/311858643-e45bb503-4fdb-4366-b1b3-1ef25b3c6ba1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4OTIyMDgsIm5iZiI6MTcyMzg5MTkwOCwicGF0aCI6Ii8yNDg5NjEvMzExODU4NjQzLWU0NWJiNTAzLTRmZGItNDM2Ni1iMWIzLTFlZjI1YjNjNmJhMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODE3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxN1QxMDUxNDhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04OTAyYWE3YzRkMGUyZWE3OGFlN2NiNWIxNmNmMDBkYmMwOWRhMzNkYmM5MDBmZDVjNDdhNmVjYTM0OGM2NWJhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.jNSYHYTt4y8vpIY1iAJ_Oc3A4F-31Xupmb4u9mOtvnA)
Sample command : python3 mediadc_delete.py --exclude workspace --include DCIM Temp Import Upload temp --host "https://server.com/nextcloud/remote.php/dav/files/user" --login user --password XXX ../../Downloads/2_task_results_export.json --different-path-only