Documentation PI Nexus+ Documentation

PI Nexus+ / Reference

Retention and Maintenance Reference

This reference lists how long PI Nexus+ keeps each kind of data, when cleanup runs, and what each purge and reset removes. The Administration Guide chapter Inventory Maintenance and SQL Admin UI links here. Times are the scanner server's local time.

Overview

This reference lists how long PI Nexus+ keeps each kind of data, when cleanup runs, and what each purge and reset removes. The Administration Guide chapter Inventory Maintenance and SQL Admin UI links here. Times are the scanner server's local time.

Retention settings

DataWhereOptionsDefaultCleanup runs
Missing inventoryInventory Maintenance > Inventory, Retention30, 90, 180, 365 days, Infinite180 daysAfter completed scans
Routine health history (successful health refreshes)Scan history, Routine health history30, 60, 90, 180, 365 days, Infinite30 daysDaily at 3:00 AM
Inventory, verification, failure, completed-with-errors, recovery and other diagnostic runsScan history, Inventory and diagnostic history30, 60, 90, 180, 365 days, Infinite180 daysDaily at 3:00 AM
Compression tuning run details and comparison previewsCompression tuning, Detailed run retention7, 14, 30, 60, 90, 180, 365 days30 daysDaily at 2:30 AM
Compression tuning apply and restore auditsCompression tuning, Apply and restore audit retention90, 180, 365, 730, 1,825 days, Infinite365 daysDaily at 2:30 AM
Analysis recalculation runs and dismissed suggestionsAnalysis recalculation, Keep history30, 60, 90, 180, 365, 730 days90 daysDaily at 3:30 AM
Inventory change historyAdmin > Change TrackingSee Change TrackingWith change tracking
Log filesNot configurable31 files per componentDaily
Host monitoring samplesNot configurableSee Host Monitoring Reference

Automatic cleanup is on by default for scan history, compression tuning and analysis recalculation. With it off, history is kept until you choose Run cleanup now. Saving changes only the settings; cleanup always uses the saved values.

Other limits

SettingOptionsDefault
Auto Tune recommendation capacity10,000 to 1,000,000100,000
Auto Tune capacity statesWarning at 50 %, held at 100 %, resumes below 80 %

When the capacity is held, Auto Tune starts no new batches; manual tuning stays available. PI Nexus+ does not delete results to free capacity.

What cleanup never removes

  • Active scans, unconfirmed cancellations, and work still being retried or waiting for attention.
  • The run that current inventory or a target's automation baseline depends on.
  • Emails not yet sent, and change events still inside their own retention.
  • Analysis recalculation runs that are active, failed, unconfirmed or mixed, pending suggestions and suggestions whose email is not yet delivered.
  • Active compression tuning runs, current recommendations, final apply results, unresolved restore failures and audits still inside their retention.

Cleanup works in small batches that can be resumed, and only one cleanup of a kind runs at a time. Analysis recalculation retention counts from the latest activity on a run (created, sent, retried, confirmed, dismissed or deleted). Some minimal records are kept after expiry so that no recalculation or email is sent twice; retention is therefore not a fixed size cap. Freed space is reused by SQL Server; database files are not shrunk.

Danger zone actions

ActionRemovesKeepsRuns
Purge missing inventoryAll missing inventory, with its references, issues, suppressions and dependent PI Vision calculationsActive inventory, excluded inventoryQueued as Missing inventory purge; runs when no scan runs. Requested twice, it runs once
Purge excluded inventoryInventory excluded by disabled targets or rulesEverything elseAt once
Purge tuning runsAll inactive tuning runs, run points, comparison previews and tuning auditsPI Point inventory, tuning exclusionsAt once
Purge full inventoryAll discovered inventory, references, issues, dashboard snapshots, staging leftoversTargets, rules, schedules, scan historyAt once
Reset databaseInventory, scan history, targets, rules, schedules, PI Vision instances, notification settingsSecurity role mappings, security auditAt once

On an estate of about one million PI Points and one million AF attributes, purging 56,500 missing objects took about 15 minutes.

Deleting a single scan run

ItemBehaviour
WhereRow menu of a finished run, Permanently delete, on the Scanning page's History tab or a target's history
RoleAdmin
PreviewLists the records deleted with the run
Refused whenThe run has active work, is the source of current inventory, has retained change history or pending emails, or another record still needs it
Latest health resultCan be deleted; the target returns to unknown health and a health refresh becomes due
AuditEach deletion is written to the security audit

SQL Server page states

TileStates
DatabaseReachable, Offline
SchemaCompatible, Not ready, Unknown
MigrationCurrent, Running, Failed, Backup (backup recommended), N pending (migration required; back up, then Apply), No history

Who can do what

ActionRole
Everything under Admin > Inventory Maintenance and Admin > SQL ServerAdmin