Hi, sorry for the lot of questions, just tying down a few more details
So you have APP1 and APP2. APP1 works at the current location, while APP2 would make the device inoperable there. Will need to remove all data for APP1 at the end of any process regarding this issue.
Are you trying to move the device to a new location (where APP2’s settings would work)? Or what kind of change are you trying to make? Just to understand a bit better of what’s happening with the device.
Because if e.g. switching applications would disconnect the device at the current location, but it’s going somewhere where it has network, then once it re-connects, we can help you remove the previous app’s data. If that’s not what’s happening, maybe it would help the brainstorm for a solution if you can give some more info… (real world IoT is never really straightforward).
Also, you say you are using wifi-connect, that’s resin-wifi-connect, right? And then you are not using the hot-spot feature, just the ability to switch networks with saved networks?
(as a forward-looking note, on resinOS 2.x with Network Manager this can be a lot easier, as then the device can store multiple network connections and could choose to connect to the one that’s available)