Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • jonok 297 posts 658 karma points
    Jun 21, 2023 @ 00:38
    jonok
    0

    V11 content version cleanup not working

    I am trying to clear out the previous versions of some content nodes, and I've added the following to the appsettings.json, and then restarted the application, but it still holds onto the version history, even after several hours:

    {
      "Umbraco": {
        "CMS": {
          "Content": {
            "ContentVersionCleanupPolicy": {
              "EnableCleanup": true,
              "KeepLatestVersionPerDayForDays": 0,
              "KeepAllVersionsNewerThanDays": 0
            }
          }
        }
      }
    }
    

    Has anybody got this to work in their Umbraco?

  • Roy Berris 89 posts 576 karma points c-trib
    Jun 21, 2023 @ 12:27
    Roy Berris
    0

    Hi,

    If you don't wish to retain any content versions except for the current draft and currently published you can set both of the "keep" settings values to 0. After doing this, the next time the scheduled job runs (hourly) all non-current versions (except those marked "prevent cleanup") will be removed.

    https://docs.umbraco.com/umbraco-cms/reference/configuration/contentsettings#contentversioncleanuppolicy

    It seems to be a bug if it is not working. You might want to submit an issue in GitHub.

    Do you see any errors in console?

Please Sign in or register to post replies

Write your reply to:

Draft