Platform Maintenance
Operator tools for managing test runs. Use Clear All before a fresh test so leftover history doesn't contaminate the next scan. Re-ingest a saved .json sidecar to reconstruct an asset's history after a wipe — the report file is the audit trail.
Clear reports only
Wipe every PDF + .json + .txt file from ./reports/. The asset registry (assets, scans, trends) is kept intact, so trend history still works.
DELETE reports/*.pdf reports/*.json reports/*.txt
KEEP asset_registry.db data/clouds data/cad data/splats
KEEP asset_registry.db data/clouds data/cad data/splats
Clear everything — full reset
Wipe all reports + per-asset point clouds + CAD + Gaussian splats + the blockchain chain + every row in the asset registry. Auth users + sensor plugins survive. Use this between test runs so a fresh upload starts on a clean slate.
DELETE reports/* data/clouds/* data/cad/* data/splats/* data/blockchain.db
DELETE asset_registry rows (assets, scans, trends)
KEEP data/auth.db sensors/* proprietary/ the platform itself
DELETE asset_registry rows (assets, scans, trends)
KEEP data/auth.db sensors/* proprietary/ the platform itself
Re-ingest a report sidecar
Drop a previously-saved <scan_id>.json file. The diagnostic report inside is replayed into the registry — the asset's history is reconstructed from the report alone. Idempotent on scan_id (re-ingesting the same sidecar twice is a no-op).
POST /api/admin/reingest-report (multipart 'file' = .json sidecar)
OR JSON body with the sidecar payload
OR JSON body with the sidecar payload