Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    Remove all items older x days

    Kopano Groupware Core
    1
    2
    736
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Coffee_is_life
      Coffee_is_life last edited by

      Hello Forum,

      we got quite a big db in our Company (158GB whole db folder using innoDB on Mariadb(mysql)-5.5.56).
      We also got an archive-system with all messages saved in there.
      my question:

      is there a way (maybe python etc) to delete all messages older than x days? - not just softdeleted items, but all
      after that i would use “mysqlcheck --all-databases --auto-repair --extended --optimize” to recreate the tables.
      Just tested on my test-env and this worked with purgeing softdeleted items.

      thanks in advance

      Coffee_is_life

      1 Reply Last reply Reply Quote 0
      • Coffee_is_life
        Coffee_is_life last edited by

        hello again,

        i’ve found a script in kopano-scripts called “delete-items.py” - seems to be my desired action.

        coffee_is_life

        1 Reply Last reply Reply Quote 0
        • First post
          Last post