(frontend) Truly delete IR file when CAL is deleted or saved with errors