# Disable History Clean Up

**URL:** <https://forum.camunda.io/t/disable-history-clean-up/59380>\
**Category:** Camunda 7 Topics\
**Created:** [February 6, 2025, 8:08pm UTC](https://forum.camunda.io/t/disable-history-clean-up/59380 "2025-02-06T20:08:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicolasgg](https://forum.camunda.io/letter_avatar_proxy/v4/letter/n/5daacb/32.png) [@nicolasgg](https://forum.camunda.io/u/nicolasgg)\
**Post date:** [February 6, 2025, 8:08pm UTC](https://forum.camunda.io/t/disable-history-clean-up/59380/1 "2025-02-06T20:08:43Z")

</div>

**Hello everyone,**

I am currently working with Camunda 7, and we are facing an issue: we are unable to delete historical records. I have read that the _Time to Live_ (TTL) can be configured from the diagram and set to `null`, but we want to be cautious. Even if a TTL value is set, we want to ensure that the information is not deleted from our historical tables.

To achieve this, I understand that I need to adjust the `yml` file to disable periodic cleanup. I believe I have configured it correctly, but I would like to confirm if the clean-up settings are correct. Could someone review it and give me their opinion?

```auto
camunda.bpm:
  webapp:
    csrf:
      enable-same-site-cookie: true
      same-site-cookie-option: STRICT
    header-security:
      hsts-disabled: false

  authorization.enabled: true

  generic-properties.properties:
    deserialization-type-validation-enabled: true
    deserialization-allowed-packages:
    deserialization-allowed-classes:
    enable-password-policy: true
    historyCleanupEnabled: false

  run:
    auth.enabled: false
    example:
      enabled: true
    webapps:
      enabled: true
server:
  ssl:
    # key-store: classpath: /*Your_Certificate*/
    # key-store-password: /*Your_Certificate_Password*/
    # key-store-type: pkcs12
  # port: /*Your_Port*/

  servlet.session.cookie:
    secure: true
    http-only: true

logging:
   level.root: INFO
   file.name: logs/camunda-bpm-run.log

# datasource configuration is required
# spring.datasource:
# url: jdbc:sqlserver://proxy-host:1433;databaseName=/*Your_Database*/
# driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
# username: /*Your_Username*/
# password: /*Your_Password*/

spring.web.resources:
  static-locations: NULL

# camunda.bpm.run.process-engine-plugins:
# - plugin-class: org.camunda.bpm.example.parselistener.InformAssigneeParseListenerPlugin

```

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![hassang](https://forum.camunda.io/user_avatar/forum.camunda.io/hassang/32/16498_2.png) [@hassang](https://forum.camunda.io/u/hassang)\
**Post date:** [February 7, 2025, 8:35am UTC](https://forum.camunda.io/t/disable-history-clean-up/59380/2 "2025-02-07T08:35:48Z")

</div>

Hi @nicolasgg

_By default_ , history cleanup is _not_ performed automatically (as no batch cleanup window is configured)

For automated history cleanup on a regular basis, a _batch window must be configured_.

> **[History | docs.camunda.org](https://docs.camunda.org/manual/7.20/user-guide/process-engine/history/#cleanup-window)**
>
> documentation of Camunda 7

---

<div class="post-metadata">

**Author:** ![system](https://forum.camunda.io/uploads/default/original/3X/5/8/58d50142eacca605d35cb1ef9e6b86ae85f49436.png) [@system](https://forum.camunda.io/u/system)\
**Post date:** [April 30, 2025, 1:44pm UTC](https://forum.camunda.io/t/disable-history-clean-up/59380/3 "2025-04-30T13:44:23Z")

</div>

Closed on April 30, 2025, 1:44pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
