Piwigo plugin - Prune History allows to prune manually history table according a date range, save the table before a purge and restore it if you made a mistake, download the saved table as a SQL file, automatically purge the table according to a criterion of data retention -
View it on GitHub