Removing obsolete information

Last modified 15 Dec 2021 08:33 +01:00

During midPoint operation, some data items gradually gather in the repository. Typical examples are tasks and audit records.

Cleanup policy

MidPoint provides a feature that automatically cleans-up the repository with respect to these items. A system task named Cleanup runs (by default) every 24 hours and removes tasks and audit records older than predefined time value. This is the default configuration from the System Configuration object:

<c:cleanupPolicy xmlns:c="">

This configuration causes the Cleanup task to remove all audit records older than three months (see the ISO 8601 specification) and all closed tasks that are more than one month after their completion.

Note: More precisely, when removing the tasks, only root tasks are considered. When a root task is removed, all of its subtasks (that should be completed before the root) are removed as well.

Cleanup elements

Element type for cleanupPolicy is documented in our schemadoc. There are more CleanupPolicyType elements available in cleanupPolicy, not configured by default in the System Configuration object:

  • auditRecords to clean up audit records,

  • closedTasks to clean up closed tasks,

  • closedCases to clean up closed cases,

  • closedCertificationCampaigns to clean up closed certification campaigns,

  • outputReports to clean up output reports,

  • and deadNodes to clean up dead nodes.

The things mentioned above are cleaned up regularly by the Cleanup task.

There are other clean-up settings, but these are consulted only when the relevant structures are worked with:

  • objectResults clean-up policy for object execution results - used as a default when the following settings are not specified,

  • simpleOperationExecutions is used to clean up simple execution results,

  • complexOperationExecutions is used to clean up complex execution results.

Was this page helpful?
Thanks for your feedback