https://github.com/tbarbette/mediadc-massdelete
Use the json export of MediaDC (NextCloud app) to massively delete files
https://github.com/tbarbette/mediadc-massdelete
Last synced: about 2 months ago
JSON representation
Use the json export of MediaDC (NextCloud app) to massively delete files
- Host: GitHub
- URL: https://github.com/tbarbette/mediadc-massdelete
- Owner: tbarbette
- License: bsd-3-clause
- Created: 2024-03-11T17:18:38.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-10T09:56:22.000Z (6 months ago)
- Last Synced: 2025-04-10T23:16:53.067Z (about 2 months ago)
- Language: Python
- Size: 12.7 KB
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MediaDC Mass Deleter
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]
jsonTakes the json export from MediaDC and massively delete all replicates
positional arguments:
json Path to the json fileoptional 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## Getting the json file out of MediaDC
## Example
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`