Purging data

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
Phroobar
Posts: 37
Joined: 13 Dec 2022, 16:14

Purging data

Post by Phroobar »

We have a business requirement to delete data older than 7 years. Is this feature built into Mantis BT or do I have to delete it directly from the database?
atrol
Site Admin
Posts: 8383
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Purging data

Post by atrol »

This feature is not built into MantisBT.
Instead of deleting it directly from the database via SQL (you have exactly to know what has to be deleted), you could also write some PHP code (check functiom bug_delete in bug_api.php), or use the REST API.
Please use Search before posting and read the Manual
cas
Posts: 1625
Joined: 11 Mar 2006, 16:08
Contact:

Re: Purging data

Post by cas »

A plugin is available since I have a similar requirement.
See here https://github.com/mantisbt-plugins/Purger
Post Reply