Copyright © https://mongoose-os.com

Mongoose OS Forum

frame

OTA to remove old files

Describe your goal

When renewing secrets in end-devices, OTA is to be used to load new secrets while the old secrets are deleted.

Describe the result you expect

Upon OTA, the existing file system in the device is to be deleted and replaced with the new file system.

Describe the result you see - show logs, output, observed behavior

Old files are still present after OTA.
If the new file system has a new file with the same name as an old one, then it will be updated to the new one.
However, I wish for all old files to be deleted.
Is this the intended design?
Is there any way around this?
Sure, I can use the same name to replace existing files but I will have to keep track of all the file names in each of the devices, which can be troublesome and human error prone.

Thank you.

Comments

Sign In or Register to comment.