I ran this command to remove old metrics
find /var/lib/centreon/metrics -type f -name '*.rrd' -mtime +90 -delete
and I would like to know if is safe to perform this query directly
DELETE FROM data_bin WHERE id_metric NOT IN (SELECT metric_id FROM metrics)