mendhak/gpslogger

[feature request] option to delete .csv files and other data file types from mendhak folders

Closed this issue · 3 comments

Troubleshooting the new csv upload to custom URL function leaves multiple days csv files which all upload periodically.
It is desirable to clear out old csv files periodically.
I would imagine that using the reset entire app function would do this, but that is rather extreme.
Meanwhile navigating to the folder via terminal emulator is cumbersome.

I have tinkered a bit and I've been able to add a rudimentary dialog which lets a user select the files to delete, manually. Is that worth trying? Here you can see a file dialog with multi seelct.

image

I've not made this an automated process. In the past it's been requested to automatically delete a file when an upload occurs, but because uploads aren't reliable, and deleting is a destructive action, the risk is too large, there could be data loss.

v120 is in the releases and on F-Droid