Menu

#1843 How to automatically delete old events?

open
nobody
None
3
2019-10-01
2019-10-01
Thomas S.
No

Hi

MRBS version: 1.7.1

Is there a possibility to automatically delete events after i.e. 2 years and if so, how?

Best,
Thomas

Discussion

  • Campbell Morrison

    To do it automatically you'd have to write your own script and run it as a cron job.

    However, you can do it manually as an admin quite easily from the Report page if you set

    $auth['show_bulk_delete'] = true;
    
     
  • Thomas S.

    Thomas S. - 2019-10-01

    Hi

    OK thanks so far. Can you tell me the database table name where the events are stored? Then i can take a look

     
  • Campbell Morrison

    Entries are stored in $tbl_prefix . 'entry' and repeat information in $tbl_prefix . 'repeat'. If you delete a member of a series you'll need to check that you haven't left rows in the repeat table that don't have corresponding entries, and delete them if you have. Have a look at del_entry_ajax.php.

     
MongoDB Logo MongoDB