[Enhancement] Photo Deletion - Sync and delete older than ##
Hello!
I was wondering if it possible to add device photo deletion to the app?
- Set up a field for number of daysOld (example 30, 60 ,365) for photos/videos on your device (Phone).
- (When Photos is open) Scan device for all photos/videos (MediaStore) and collect information (uniqueID, name, location, dateCreated, size, state) into database (Room).
- (After app is opened and latest photos/videos are added) Check for photos older than daysOld in database, check if exists on Nextcloud server (compare name and size), once found delete on device (phone).
Goal of this is to save space on phone but allow you to retain photos/videos a bit longer than Nextcloud's own upload then immediately delete function. The app already has access to the server, photos/locations on the server - so just need to scan the phone, add the daysOld variable, and then check vs the server before deletion from local device (phone).
Thoughts?
As a note I started building a side app for this but it seems pointless as this would make an easy addition and Photos is already in the same domain.
Thanks,
--Phil
Edited by PStewardEB