deleteChangeLogs

You are recommended to delete all change logs after the application has completed processing them. Use the deleteChangeLogs API in the generated database class to delete all change logs on the device.

Syntax

+ (void) deleteChangeLogs

Returns

None.

Examples

  • Delete Change Logs
    [SMP101SMP101DB deleteChangeLogs];

Usage

Ensure that when calling deleteChangeLogs, there are no change logs created from a background synchronization that are not part of the original change log list returned by a specific query:

GenericList<ChangeLog> changes = getChangeLogs(myQuery);

You should only call deleteChangeLogs in the onSynchronize() callback where there are no multiple synchronizations occurring simultaneously.