How to delete deprecated app configuration data?

Started by akirot, March 10, 2022, 05:57:59 PM

Previous topic - Next topic

akirot

This might have been asked and answered before but I can't find the respective thread.
App configuration settings are stored via the v1/data endpoint.
In the course of time various (self written, long deprecated) apps might have left their traces there.
Documentation of the once used data structure is not longer available.
Currently I'm cleaning up my IMatch database.
How can this old data be deleted?
Even brute force (deletion of all! self defined [app configuration] data) will do.
Every hint is welcome :-)

Mario

v1/data/list to list all data, then DELETE requests for the data you want to delete?
Note: Make sure not to delete data of other apps, this might break many things.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

akirot

Will do - nevertheless I have a gut feeling this already has been addressed/scripted and I just don't want to reinvent the wheel :-)

Mario

Why should this have been scripted?

Each app maintains its own set of configuration data and is responsible for maintenance, migration and deletion.
Apps usually know what they store and when they don't stuff no more and can delete it.

Stuff stored by distinct apps does not cause any issues. IMatch just ignores it and the data volume is usually negligible.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook