microsoft / ReportingServicesTools

Reporting Services Powershell Tools
MIT License
458 stars 213 forks source link

Is there a way to delete one or more history snapshots? #411

Open Richtpt opened 1 year ago

Richtpt commented 1 year ago

Do you want to request a feature or report a bug? Feature, if it doesn't already exist.

We would like to delete history snapshots older than X days. Each report will have a different retention period/policy. We will store how many days of snapshot to keep in a table in SQL Server, such as keep the last 60 days, or last 120 days for report XYZ. We want to have a job running daily that will cycle through these retention periods and delete all snapshots older than the retention period for that report.

Is it currently possible to delete one or more history snapshots with ReportingServicesTools? If not, could this be a feature added? Thanks!