Chapter 7: Operate and Maintain the Installation
Clean Up Generated Files
The APPX chart API leaves generated image files on disk. Remove them only after the screen, report or background task no longer needs them. End of Process can suit a simple input with one chart; multi-chart and deferred-report workflows need their own ownership and retention rules.
Use a dedicated chart directory so a scheduled cleanup can be limited to files created by this application. Exclude files being generated or consumed, and retain failed-script evidence only as long as required for diagnosis. Monitor free space and test cleanup alongside concurrent rendering.