Dear Centreon,
Today, in 24.04, when we delete a service or even a host, all metric and performance data from these services and hosts is retained in the MySQL database for the duration of the configuration set in the "Retention duration for performance data in MySQL database" menu.
This means that if you want to keep the history of your active objets for two years or more, the objects supposed to be deleted, will not be deleted during the same periode for all these years, unnecessarily filling your disks with completely useless data that is supposed to be deleted as it should be.
For my part, I have “deleted” 40,000 services that could free up 2/3 of the DB's disk space if this data were really deleted as they should.
I propose that the "Retention duration for performance data in MySQL database" menu should not apply to deleted objects and that these should be purged immediately or, if necessary, with a second field allowing select a much shorter retention time for these data must to be deleted.
Thanks a lot.
