if the object exists server side in a database, you can set a boolean on your object called ‘isDeleted’ with a default value of false. When you want to delete the object, set this to true and sync this data.
Created an AFTER COMMIT event handler for this entity that deletes the object when this boolean is set to true. In this way, everything is handled on the server and no conflicts can occur.
If you only need this list on the device it self, you might want to work with non persistables entities and store this in the async storage of the device using the ‘LocalStorage’ activities from the NanoflowCommons.