The data is created in a "maintenance" application. It is then used repeatedly in one or more "production" applications. In this case the data doesn't change often, whereas the prod applications change often.
I'm not really sure what you are trying to achieve here. You persist data, only to delete it afterwards?
Perhaps the GitHub discussions are a better place to go further with this.
If you share more context and source code, it is easier to help.
A shot in the dark: If you are starting the storage with an empty directory in each case, there is nothing you have to call.
Von: store-dev <store-dev-bounces@xxxxxxxxxxx> im Auftrag von Robert Rodini via store-dev <store-dev@xxxxxxxxxxx>
Gesendet: Donnerstag, 21. August 2025 14:18
Bis: store developer discussions <store-dev@xxxxxxxxxxx>
Cc: Robert Rodini <rrodini@xxxxxxxxxxx>
Betreff: Re: [store-dev] Should deleteContent() be called?
Yes, I do want to delete all previous content.
My mistake. root.deleteContent() is an API in my custom DataRoot class. It is not part of EclipseStore. So, I will ask differently. Is there an EclipseStore API that I should call at startup in my scenario?
Thanks
From: store-dev <store-dev-bounces@xxxxxxxxxxx> on behalf of Florian Habermann via store-dev <store-dev@xxxxxxxxxxx>
Sent: Thursday, August 21, 2025 7:16 AM
To: store developer discussions <store-dev@xxxxxxxxxxx>
Cc: Florian Habermann <f.habermann@xxxxxxxxxxxxxxx>
Subject: Re: [store-dev] Should deleteContent() be called?
Hi,
Just to go sure. Do you want to erase the previous content on each startup, or is this not on purpose?
And what exactly do you mean with root.deleteContent?
Von: store-dev <store-dev-bounces@xxxxxxxxxxx> im Auftrag von Robert Rodini via store-dev <store-dev@xxxxxxxxxxx>
Gesendet: Mittwoch, 20. August 2025 19:45
An: store developer discussions <store-dev@xxxxxxxxxxx>
Cc: Robert Rodini <rrodini@xxxxxxxxxxx>
Betreff: [store-dev] Should deleteContent() be called?
Hello,
In my application I have a program that reads text files and processes them into Java data structures that are then saved to Eclipse Store (it works!).
Each time the application runs it just erases the previous contents of the store. In this scenario should I call root.deleteContent() at start up? If I don't do this, is there a harmful effect on the store?
Thank you