Logs Analyzer
Deleting imports and retaining reports
Logical deletion, worker cleanup, original-file expiry, reused imports and immutable accounting.
Decide whether you want to remove only a reused entry or its original report. Use the confirmed deletion action for a terminal import and do not equate immediate disappearance from the interface with instantaneous physical cleanup. Original-file expiry and report deletion are separate workflows. The processing worker retries failed physical cleanup; it does not run from the browser and is not the snapshot-refresh cron.
What happens when I delete a processed import?
Deletion first marks the import as deleted and removes it from the panel and reports. The scheduled processing worker then physically deletes the matching ClickHouse events and retained original file, and records completion of cleanup only after those steps succeed. Its script is process_logs_analyzer.php, not the snapshot-refresh script. Cleanup is performed in bounded batches after the worker run, so logical disappearance is not a guarantee of immediate physical erasure. A failed cleanup remains a durable candidate for retry. Deletion preserves required accounting records and does not automatically refund consumed credits.
Does original-file expiry also delete the report?
No. The original upload is scheduled for removal 24 hours after processing finishes or fails; an import still in progress does not start that terminal-state retention period. For a completed import, expiry removes the original file but leaves its published event report. Deleting an import is a different operation and removes the report data through the cleanup workflow. A general event/report-retention policy has not yet been established for commercial service, so do not interpret original-file expiry as a promise of report deletion after 24 hours or of indefinite report availability.
When can an import be deleted and what happens to reused reports?
Deletion is available for terminal imports, such as completed, failed or cancelled jobs, subject to the reservation and active-work guards. It is not a way to interrupt an active analysis unsafely. A reused import is an alias of an original rather than a second independent set of ClickHouse events. Deleting that alias does not erase the original report, while deleting the original also removes its dependent reused entries from report availability. A later upload may then require new processing and consumption. Confirm the operation before deleting data you still need.