I have a screen flow where a user creates a record in one screen, and in the next screen the user uploads a file to the record that has just been created. Then, the user presses a button that launches a subflow involving the newly created record and its file. If the user does the whole process, everything works fine.
However, if the user interrupts the screen flow (presses on the "X" to close the window) after creating the record but before uploading the file and pressing the button to launch the subflow, I would be interested in deleting the record created. I don't want the user to find a record lingering there with no file attached because the user had not finished the process (and I always want them to use the Screen Flow to create the record, upload its file and launch the subflow).
Is there a way to indicate what actions should be taken if a flow interview is interrupted at a given moment? In my case, I would want to delete the newly created record.