Scheduling Accumulated Data Cleanup for Domains

Periodically clean up accumulated data maintenance items in cache that are no longer needed, by creating a data purge schedule. The schedule should be set to perform the clean up processes run when system usage is low.

However, you can also manually purge accumulated data items at any time; however note that for domain logs, if the number of domain log data is very large (one with hundreds of thousands of entries for example) then SAP Mobile Server must purge domain log data asynchronously.
Note: You can use the Administration API to automate clean up at the package level.
  1. In the SAP Control Center left navigation pane, expand the Domains tab and select a domain.
  2. In the right pane, select the Scheduled Task tab.
  3. Under Task, select one of the options you want to schedule, and then select Properties to set up its automatic schedule:
    Option Description
    Subscription Cleanup
    Removes subscriptions that are not active for the 'number of inactive days' in the schedule task configuration. Note, subscription is considered active as follows:
    • Replication – last synchronization request timestamp.
    • Messaging – last synchronization message timestamp.
    Note: If a casual user accesses the system infrequently, for example three to four times a year, the user falls outside the specified time frame and is removed from SAP Mobile Platform. The user will then have to reinstall the application and initiate a sync to re-activate subscription.
    Error History Cleanup Removes historical data on MBO data refresh and operation replay failures, which result from system or application failures. System failures may include network problems, credential issues, and back-end system failure. Application failures may include invalid values, and nonunique data.
    Note: Only error messages are removed.
    Client Log Cleanup Removes client log records that have already been synchronized to the device, or are no longer associated with active users.
    Synchronization Cache Cleanup This cleanup task removes:
    • Logically deleted rows in the cache that are older than the oldest synchronization time on record in the system. Synchronization activity for all clients establish the oldest synchronization time.
    • Unused or stale partitions.

    In addition, the optional exp header property in DCN messages indicates an expiration date, after which the data is purged based on the defined Synchronization Cache Cleanup schedule.

  4. Select Enable. Schedules run until you disable them, or they expire.
Related concepts
Domain Logs
Connections
Related tasks
Creating and Enabling a New Domain
Deleting a Domain
Registering a Domain Administrator User
Assigning Domain Administrators to a Domain
Viewing Applications for a Domain
Viewing Application Connections for a Domain
Checking Client Application Logs
Configuring Domain Security