How to set the deleted record cleanup period

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • murugappan
    Active Community Member
    • Aug 2017
    • 467

    How to set the deleted record cleanup period

    Hi,

    I am using Version 8.0.5. I can set the parameter to remove deleted records using "
    PHP Code:
    'cleanupDeletedRecords' => true, 
    
    ". I am unable to set the the frequency to run the cleanup job. How do i set the frequency?

    Help appreciated. Thank you
  • victor
    Active Community Member
    • Aug 2022
    • 728

    #2
    Hi murugappan,

    More about this can be seen in this video: https://www.youtube.com/watch?v=yyHW...channel=Devcrm
    or in the documentation: https://docs.espocrm.com/administrat...rams/#clean-up

    Comment


    • emillod
      emillod commented
      Editing a comment
      Thank you for linking to video Cheers!

    • murugappan
      murugappan commented
      Editing a comment
      @victor,
      I inserted the following line into the Config.php. Would this work?

      'cleanupDeletedRecordsPeriod' => '1 days',

      Its ok. I tested and it works. Thank you for the help.
      Last edited by murugappan; 12-03-2023, 06:25 AM.
  • Vadym
    Super Moderator
    • Jun 2021
    • 346

    #3
    Hi murugappan,

    Also, you can realize it via UI:
    Click image for larger version  Name:	image.png Views:	0 Size:	36.0 KB ID:	100002

    Either in database table scheduled_job:
    Click image for larger version  Name:	image.png Views:	0 Size:	52.1 KB ID:	100003​​
    Last edited by Vadym; 12-04-2023, 09:00 AM.

    Comment

    Working...