[Mobile] Delete all application data

I'm trying ti implement a feature to delete all the data from the Mobile App we are developing in a specific moment. The point is to erase all the lines from all the tables, without using an action to delete each table individually, because more tables may be added in a near future. Is there any way to delete all the database without an action explicitly calling all deletes one by one?

Hi Waldir,


For this you can create a timer and run a specific time on a daily basis or weekly or monthly wise.

and use "Ossys_Entity" table to get table name which are using in Current app.

find them and delete data from this.


Thanks

Rahul Sahu

Rahul Sahu wrote:

Hi, 

The "Ossys_Entity" only map the server entitys. What i need is to delete local entitys.

Hi Waldir,


For this you can create a timer and run a specific time on a daily basis or weekly or monthly wise.

and use "Ossys_Entity" table to get table name which are using in Current app.

find them and delete data from this.


Thanks

Rahul Sahu



Waldir Vigário wrote:

I'm trying ti implement a feature to delete all the data from the Mobile App we are developing in a specific moment. The point is to erase all the lines from all the tables, without using an action to delete each table individually, because more tables may be added in a near future. Is there any way to delete all the database without an action explicitly calling all deletes one by one?

Hi Waldir Vigario,

plz vote for the same idea :

https://www.outsystems.com/ideas/6210/master-clear-action-to-clear-all-local-entities-on-mobile-local-storage


assif_tiger wrote:

Waldir Vigário wrote:

I'm trying ti implement a feature to delete all the data from the Mobile App we are developing in a specific moment. The point is to erase all the lines from all the tables, without using an action to delete each table individually, because more tables may be added in a near future. Is there any way to delete all the database without an action explicitly calling all deletes one by one?

Hi Waldir Vigario,

plz vote for the same idea :

https://www.outsystems.com/ideas/6210/master-clear-action-to-clear-all-local-entities-on-mobile-local-storage



You have my vote.

Solution

assif_tiger wrote:

Waldir Vigário wrote:

I'm trying ti implement a feature to delete all the data from the Mobile App we are developing in a specific moment. The point is to erase all the lines from all the tables, without using an action to delete each table individually, because more tables may be added in a near future. Is there any way to delete all the database without an action explicitly calling all deletes one by one?

Hi Waldir Vigario,

plz vote for the same idea :

https://www.outsystems.com/ideas/6210/master-clear-action-to-clear-all-local-entities-on-mobile-local-storage


Hi again Tiger, since i didnt get a solucion i create a component based on JS and nativePlugin to resolve the problem. if you still searching for a solucion please try it and give a feedback.

https://www.outsystems.com/forge/component-overview/7313/clearlocaldata

Thanks



Solution