How to remove only specific data from local database in native mobile and not from server database?

We have built an application whose data keeps growing. And over time a lot of data will be stored in the database and the mobile application database cannot store it all. How to remove older data or unnecessary data only so that it is removed from local and is retained in the server database.
0 answers