owntracks / recorder

Store and access data published by OwnTracks apps
Other
907 stars 123 forks source link

How to delete old location data ? #501

Closed damionx7 closed 1 month ago

damionx7 commented 1 month ago

Thank you for this application.

I have one query. Is there any option on deleting old location data eg. an option to keep only the latest location data (30 d) in owntracks recorder. If not, how can I implement it.

jpmens commented 1 month ago

There is rudimentary and possibly dangerous support for removing data via the API, but beware this has probably had very little testing.

Other than that, you can safely at any time remove the *.rec files under <STORAGE>/rec/<user>/<device>/. These are named YYYYMM.rec and can easily be identified.