176
Views
5
Comments
Solved
Delete entities data in mobile app
Question

How can I empty the tables in the mobile app? Not the local storage but the Outsystems entities.

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP
Solution

For mobile local entities you indeed do not have Advanced SQL but tne entities have a server action DeleteAll<EntityName> if you call it then all records are deleted from the entity.

If you have entities on the server that you want to delete from within your mobile app, then create a server action that empties the server database entities and call this action from your mobile app.


2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

Hi Shivya,

The local entities on your mobile have DeleteAll crud wrappers you can use.

The server entities are the easiest to empty by using an Advanced SQL like: DELETE FROM {EntityName}

Regards,

Daniel

2019-09-03 15-30-46
Shivya Pant

Daniël Kuhlmann wrote:

Hi Shivya,

The local entities on your mobile have DeleteAll crud wrappers you can use.

The server entities are the easiest to empty by using an Advanced SQL like: DELETE FROM {EntityName}

Regards,

Daniel


Hi Daniel,

Thank you for your answer. But in Mobile development I can not see the SQL query. I wanted to empty the entities in mobile development. Not the local storage but the database entities.

Regards,

2019-03-28 12-46-56
Luiz Bubiak

Hi, Shivya.


You can use the actions of the entity in the server side, or make the wrappers in the server side and use to delete the entity. 

https://success.outsystems.com/Documentation/11/Developing_an_Application/Implement_Application_Logic/Actions_in_Mobile_Apps

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP
Solution

For mobile local entities you indeed do not have Advanced SQL but tne entities have a server action DeleteAll<EntityName> if you call it then all records are deleted from the entity.

If you have entities on the server that you want to delete from within your mobile app, then create a server action that empties the server database entities and call this action from your mobile app.


2025-10-10 00-19-44
Bruno Rendeiro

Shivya Pant wrote:

How can I empty the tables in the mobile app? Not the local storage but the Outsystems entities.


create an action where you go through this entity and erases record a record
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.