Project

General

Profile

Delete Tickets after 2 years closed

Added by Daniel S almost 5 years ago

Hello,

I need to delete Tickets on my Redmine after they are closed for a certain time, for example 2 years.
They should completely be removed from the DB.

Is there any plugin or setting that can help me to achieve this requirement?

KR
Daniel


Replies (1)

RE: Delete Tickets after 2 years closed - Added by Marcel B almost 5 years ago

I don't know about any plugin to do it.

But, what about a cron job executating rails command everyday?

Rude example :

> cd /the/path/redmine
> rails c
> Issue.where("closed_on < '2019-08-01 00:00:00'").delete
    (1-1/1)